diff options
Diffstat (limited to 'main/arpon/APKBUILD')
-rw-r--r-- | main/arpon/APKBUILD | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/main/arpon/APKBUILD b/main/arpon/APKBUILD index 79cecf4c9b..5e338937ca 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 } |