summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--~lukeshu/emacsutils-git/PKGBUILD12
1 files changed, 9 insertions, 3 deletions
diff --git a/~lukeshu/emacsutils-git/PKGBUILD b/~lukeshu/emacsutils-git/PKGBUILD
index 4553d9c38..fc4037337 100644
--- a/~lukeshu/emacsutils-git/PKGBUILD
+++ b/~lukeshu/emacsutils-git/PKGBUILD
@@ -13,7 +13,7 @@ license=('GPL3')
provides=("$_pkgname=$_pkgver")
conflicts=("$_pkgname")
-pkgrel=1
+pkgrel=2
arch=('any')
depends=('emacs')
@@ -30,12 +30,18 @@ mksource() {
mv "$_pkgname"-*/ ../"$pkgname-$pkgver"
}
+_config=(
+ VERSION=${_pkgver}.${pkgver}
+ prefix=/usr
+ libexecdir='$(libdir)'
+)
+
build() {
cd "$srcdir/$pkgname-$pkgver"
- make VERSION=${_pkgver}.${pkgver} prefix=/usr
+ make "${_config[@]}"
}
package() {
cd "$srcdir/$pkgname-$pkgver"
- make install VERSION=${_pkgver}.${pkgver} prefix=/usr DESTDIR="$pkgdir"
+ make "${_config[@]}" install DESTDIR="$pkgdir"
}