This commit is contained in:
Jack L. Frost 2015-06-01 16:15:16 +03:00
commit a4b11693cf
1 changed files with 38 additions and 0 deletions

38
PKGBUILD Normal file
View File

@ -0,0 +1,38 @@
# Maintainer: Bastien Dejean <baskerville@lavabit.com>
_pkgname='dmenu-q-xywh-xft'
pkgname="${_pkgname}-git"
pkgver=r4.a9e4948
pkgrel=1
pkgdesc='Dynamic X menu - with the xft and q-xywh patches applied'
arch=( 'i686' 'x86_64' )
url="https://github.com/baskerville/${_pkgname}"
license=( 'MIT' )
depends=( 'libxinerama' 'libxft')
makedepends=( 'git' )
provides=( 'dmenu' )
conflicts=( 'dmenu' )
source=("git+https://github.com/baskerville/${_pkgname}.git")
md5sums=('SKIP')
pkgver() {
cd "$_pkgname"
if git_version=$( git describe --long --tags 2>/dev/null ); then
IFS='-' read last_tag tag_rev commit <<< "$git_version"
printf '%s.r%s.%s' "$last_tag" "$tag_rev" "$commit"
else
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
fi
}
build() {
cd "$srcdir/$_pkgname"
make PREFIX=/usr
}
package() {
cd "$srcdir/$_pkgname"
make PREFIX=/usr DESTDIR="$pkgdir" install
}