From 8652414fde9f8952b3afe89b73de43f83084acf6 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Sat, 25 Mar 2017 22:30:06 +0100 Subject: main/tinc: modernize abuild --- main/tinc/APKBUILD | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'main/tinc') diff --git a/main/tinc/APKBUILD b/main/tinc/APKBUILD index 4b61d1ce95..dc4f888b9a 100644 --- a/main/tinc/APKBUILD +++ b/main/tinc/APKBUILD @@ -7,27 +7,16 @@ pkgdesc="tinc is a Virtual Private Network (VPN) daemon" url="http://www.tinc-vpn.org/" arch="all" license="GPL2+" -depends="" makedepends="zlib-dev lzo-dev libressl-dev linux-headers" -install="" subpackages="$pkgname-doc" source="http://www.tinc-vpn.org/packages/tinc-$pkgver.tar.gz tincd.initd tincd.lo.initd tinc.networks" - -_builddir="$srcdir"/$pkgname-$pkgver -prepare() { - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} +builddir="$srcdir/$pkgname-$pkgver" build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -44,7 +33,8 @@ build() { } package() { - cd "$_builddir" + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 install -m755 -D "$srcdir"/tincd.initd "$pkgdir"/etc/init.d/tincd -- cgit v1.2.3