Skip to content

Instantly share code, notes, and snippets.

@Lartza
Created February 8, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lartza/5bac2e46e883e0b6c482 to your computer and use it in GitHub Desktop.
Save Lartza/5bac2e46e883e0b6c482 to your computer and use it in GitHub Desktop.
bgs-git PKGBUILD
# Maintainer: melchips <truphemus dot francois at gmail dot com>
# Contributor: Lari Tikkanen <lartza@wippies.com>
pkgname=bgs-git
pkgver=0.6.r2.gd455737
pkgrel=1
pkgdesc="simple background setter based on imlib2"
arch=('i686' 'x86_64' 'armv7h')
url="https://github.com/Gottox/bgs"
license=('MIT')
depends=('imlib2' 'libxinerama')
makedepends=('git')
source=(bgs::git+https://github.com/Gottox/bgs.git)
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/bgs"
( set -o pipefail
git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cd "$srcdir/bgs"
# add the correct settings to config.mk
sed -e "s|^\(\s*PREFIX =\).*|\1 /usr|" -i config.mk
make
}
package() {
cd "$srcdir/bgs"
make DESTDIR=$pkgdir install
install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment