Last active
August 29, 2015 14:18
-
-
Save jonnybarnes/d8f0bfd85627561dccbf to your computer and use it in GitHub Desktop.
AUR scripts for jbreams/gonepass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Type=Application | |
Encoding=UTF-8 | |
Name=gonepass | |
Comment=A GTK+ 1Password reader | |
Exec=gonepass | |
Icon=/usr/share/icons/hicolor/256x256/apps/gonepass.png | |
Terminal=false | |
Categories=GTK;GNOME;Utility;Passwords |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
post_install() { | |
glib-compile-schemas /usr/share/glib-2.0/schemas | |
update-desktop-database -q | |
} | |
pre_upgrade() { | |
if [ -f /usr/share/gconf/schemas/gonepass.schemas.xml ]; then | |
gconfpkg --uninstall gonepass | |
fi | |
} | |
post_upgrade() { | |
post_install $1 | |
} | |
post_remove() { | |
post_install $1 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgname=gonepass-git | |
pkgver=r22.0931c63 | |
pkgrel=1 | |
pkgdesc='A GTK+ 1Password viewer' | |
arch=('x86_64') | |
licence=('Apache2') | |
url='https://github.com/jbreams/gonepass' | |
install=$pkgname.install | |
depends=('gtk3' | |
'openssl' | |
'jansson') | |
makedepends=('cmake') | |
source=('git+https://github.com/jbreams/gonepass' | |
'gonepass-git.desktop' | |
'1password.png') | |
sha256sums=('SKIP' | |
'23507790cf2e86ae06055b827a14cef4be5c817dcbbbee4dbcf45780bcef8f81' | |
'46f1ea916393d464b0b3f7d8679220c35ae4f6eb18bc5a471d473e9da26572ae') | |
pkgver() { | |
cd gonepass | |
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | |
} | |
build() { | |
cd gonepass | |
if [ ! -d build ]; then | |
mkdir build | |
fi | |
cd build | |
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DGSETTINGS_COMPILE=OFF .. | |
make | |
} | |
package() { | |
install -Dm644 gonepass-git.desktop "$pkgdir"/usr/share/applications/gonepass.desktop | |
install -Dm644 1password.png "$pkgdir"/usr/share/icons/hicolor/256x256/apps/gonepass.png | |
cd gonepass/build | |
make DESTDIR="$pkgdir" install | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment