aboutsummaryrefslogtreecommitdiffstats
path: root/main/arpon
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-04-25 13:43:30 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-04-25 13:43:30 +0000
commitb37bdfca31e03168f309e8093db184910bcb886c (patch)
treee17b9b710af79c6269a073f923e9962292eab793 /main/arpon
parentc84a8df70b6c6ca8b7273e2a86e4e1c08600a99b (diff)
downloadaports-b37bdfca31e03168f309e8093db184910bcb886c.tar.bz2
aports-b37bdfca31e03168f309e8093db184910bcb886c.tar.xz
main/arpon: clean up APKBUILD
Diffstat (limited to 'main/arpon')
-rw-r--r--main/arpon/APKBUILD12
1 files changed, 4 insertions, 8 deletions
diff --git a/main/arpon/APKBUILD b/main/arpon/APKBUILD
index 79cecf4c9..5e338937c 100644
--- a/main/arpon/APKBUILD
+++ b/main/arpon/APKBUILD
@@ -17,22 +17,18 @@ source="http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/ArpON-${_
arpon.confd
"
-_builddir="$srcdir"/ArpON-$_realver/build
-prepare() {
- mkdir -p "$_builddir"
- cd "$_builddir"
-}
+builddir="$srcdir"/ArpON-$_realver
build() {
- cd "$_builddir"
+ cd "$builddir"
+ mkdir build && cd build
cmake .. -DCMAKE_C_FLAGS="$CFLAGS"
make || return 1
}
package() {
- cd "$_builddir"
+ cd "$builddir"/build
make install DESTDIR="$pkgdir" || return 1
-
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}