public
Last active

gpick's PKGBUILD file based on binary debs (Arch Linux package)

  • Download Gist
PKGBUILD
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
pkgname=gpick
pkgver=0.2.4
pkgrel=2
pkgdesc="Advanced color picker written in C++ using GTK+ toolkit"
arch=('i686' 'x86_64')
url="http://gpick.googlecode.com/"
license=('BSD')
depends=('dbus-glib>=0.76' 'gtk2>=2.12.0' 'hicolor-icon-theme' 'lua>=5.1')
 
_debver=$pkgver-$pkgrel
[ "$CARCH" = 'i686' ] && _debarch=i386
[ "$CARCH" = 'x86_64' ] && _debarch=amd64
 
install=$pkgname.install
 
source=(http://$pkgname.googlecode.com/files/${pkgname}_${_debver}_${_debarch}.deb)
 
if [ "$_debarch" = 'i386' ]; then
sha1sums=('0ea92afcdecec050ad49970bfbc129c63d15a8ca')
elif [ "$_debarch" = 'amd64' ]; then
sha1sums=('17a8949bdde92b7b6f94464d6fff0b2c27bd9ca0')
fi
 
package() {
bsdtar xf "$srcdir/data.tar.gz" -C "$pkgdir"
}
gpick.install
1 2 3 4 5 6 7 8 9 10 11
post_install() {
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
}
 
post_upgrade() {
post_install $1
}
 
post_remove() {
post_install $1
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.