Skip to content

Instantly share code, notes, and snippets.

@jonnybarnes
Last active August 29, 2015 14:18
Show Gist options
  • Save jonnybarnes/d8f0bfd85627561dccbf to your computer and use it in GitHub Desktop.
Save jonnybarnes/d8f0bfd85627561dccbf to your computer and use it in GitHub Desktop.
AUR scripts for jbreams/gonepass
[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
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
}
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