dmenu-q-xywh-xft-git/PKGBUILD
2015-06-08 10:45:14 +03:00

40 lines
951 B
Bash

# Maintainer: Bastien Dejean <baskerville@lavabit.com>
# % Trigger: 1433749514 %
_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
}