mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-17 03:31:18 +02:00
community/captagent: improve abuild
This commit is contained in:
parent
c501af5eff
commit
59f5440e1a
@ -10,24 +10,30 @@ license="GPL-3.0"
|
||||
makedepends="autoconf automake bison expat-dev flex flex-dev json-c-dev
|
||||
libgcrypt-dev libpcap-dev libtool libuv-dev linux-headers libressl-dev"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/sipcapture/captagent/archive/$pkgver.tar.gz
|
||||
$pkgname.initd
|
||||
ac-fix.patch"
|
||||
$pkgname.initd
|
||||
ac-fix.patch
|
||||
"
|
||||
builddir="$srcdir/$pkgname-$pkgver"
|
||||
|
||||
build() {
|
||||
cd "$builddir" && ./build.sh && ./configure \
|
||||
cd "$builddir"
|
||||
|
||||
./build.sh
|
||||
./configure \
|
||||
--build=$CBUILD \
|
||||
--host=$CHOST \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc &&
|
||||
make
|
||||
--sysconfdir=/etc
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir" && make install DESTDIR="$pkgdir" && \
|
||||
install -D "$srcdir"/$pkgname.initd \
|
||||
"$pkgdir"/etc/init.d/$pkgname && \
|
||||
rm "$pkgdir"/usr/lib/$pkgname/modules/*.a
|
||||
cd "$builddir"
|
||||
|
||||
make install DESTDIR="$pkgdir"
|
||||
rm "$pkgdir"/usr/lib/$pkgname/modules/*.a
|
||||
|
||||
install -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
|
||||
}
|
||||
|
||||
sha512sums="4730d9974105293480a75a688e0313bb71d9b52bc7b52f9cd15cf0f58010835e96eacf7c955355e9a8fa4b74c75f909549eac56683b344acd44c2584890f1511 captagent-6.3.0.tar.gz
|
||||
|
Loading…
x
Reference in New Issue
Block a user