summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorHåvard Pettersson2016-01-03 16:21:20 +0100
committerHåvard Pettersson2016-01-03 16:29:42 +0100
commit14c2f9384f76a9b9859250e819b52881108eba78 (patch)
tree20311afadba43a20657408a1c9c667604fabfedf /PKGBUILD
parentaa51f4b34b2b7724535d0300ad14aa7c01b82414 (diff)
downloadaur-dmenu-git.tar.gz
Add support for custom config.h.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD12
1 files changed, 10 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 45029ce9452..2a395f0fc27 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@
_pkgname=dmenu
pkgname=$_pkgname-git
-pkgver=4.6.0.g32f2564
+pkgver=4.6.2.gbf3deb6
pkgrel=1
pkgdesc="A generic menu for X"
url="http://tools.suckless.org/dmenu/"
@@ -18,13 +18,21 @@ makedepends=('git')
provides=($_pkgname)
conflicts=($_pkgname)
source=(git://git.suckless.org/$_pkgname)
-md5sums=('SKIP')
+sha256sums=('SKIP')
pkgver() {
cd $_pkgname
git describe --tags --long | sed 's/-/./g'
}
+prepare() {
+ cd $_pkgname
+ # to use a custom config.h, place it in the package directory
+ if [[ -f ${SRCDEST}/config.h ]]; then
+ cp "${SRCDEST}/config.h" .
+ fi
+}
+
build(){
cd $_pkgname
make \