diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..907a7ee24201 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Ahmad Ansori Palembani <palembani@gmail.com> +pkgname=dmenu-ziro-git +_pkgname=dmenu-zi +pkgver=4.9 +pkgrel=1 +epoch= +pkgdesc="My personal build of dmenu" +arch=(x86_64 i686) +url="https://github.com/null2264/dmenu-zi.git" +license=('MIT') +groups=() +depends=() +makedepends=(git) +checkdepends=() +optdepends=() +provides=(dmenu) +conflicts=(dmenu) +replaces=() +backup=() +options=() +install= +changelog= +source=("git+$url") +noextract=() +md5sums=('SKIP') +validpgpkeys=() + +pkgver() { + cd "${_pkgname}" + printf "4.9.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "${_pkgname}" + make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 +} + +package() { + cd "${_pkgname}" + mkdir -p ${pkgdir}/opt/${pkgname} + cp -rf * ${pkgdir}/opt/${pkgname} + make PREFIX=/usr DESTDIR="${pkgdir}" install + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md" +} + |