aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-03-30 14:30:17 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-03-30 14:30:17 +0000
commit246735512b73a6147c8626a9ac817d47be02d3dd (patch)
tree9723e9748d175e3df293562940867ef063ec72e4
parentf26a8f703c3c6f977b5fb6aa058b1e8d2e869575 (diff)
downloadaports-246735512b73a6147c8626a9ac817d47be02d3dd.tar.bz2
aports-246735512b73a6147c8626a9ac817d47be02d3dd.tar.xz
testing/sxhkd: set prefix as arg instead of using sed
-rw-r--r--testing/sxhkd/APKBUILD8
1 files changed, 2 insertions, 6 deletions
diff --git a/testing/sxhkd/APKBUILD b/testing/sxhkd/APKBUILD
index 5055f5d68d..a3bd9cc73d 100644
--- a/testing/sxhkd/APKBUILD
+++ b/testing/sxhkd/APKBUILD
@@ -23,20 +23,16 @@ prepare() {
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
-
- # Fix $PREFIX
- cd "$_builddir"
- sed -i 's#^PREFIX.*#PREFIX ?= /usr#' Makefile
}
build() {
cd "$_builddir"
- make
+ make PREFIX=/usr
}
package() {
cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make PREFIX=/usr DESTDIR="$pkgdir" install || return 1
# Copy examples
mkdir "$pkgdir"/usr/share/$pkgname
cp -r examples "$pkgdir"/usr/share/$pkgname