diff options
Diffstat (limited to 'main/libproxy')
-rw-r--r-- | main/libproxy/APKBUILD | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/main/libproxy/APKBUILD b/main/libproxy/APKBUILD index 883352d606..d879471504 100644 --- a/main/libproxy/APKBUILD +++ b/main/libproxy/APKBUILD @@ -2,14 +2,14 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=libproxy pkgver=0.4.15 -pkgrel=0 +pkgrel=1 pkgdesc="A library handling all the details of proxy configuration" url="http://code.google.com/p/libproxy/" arch="all" license="LGPL-2.0-or-later" depends= depends_dev="zlib-dev" -makedepends="cmake python2-dev $depends_dev" +makedepends="cmake python3-dev $depends_dev" install="" subpackages="$pkgname-dev $pkgname-bin py-$pkgname:py" source="$pkgname-$pkgver.tar.gz::https://github.com/libproxy/libproxy/archive/$pkgver.tar.gz @@ -17,31 +17,25 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/libproxy/libproxy/archive/$p fix-includes.patch " -_builddir="$srcdir"/libproxy-$pkgver -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} - build() { - cd "$_builddir" + cd "$builddir" cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DLIBEXEC_INSTALL_DIR=lib \ -DMODULE_INSTALL_DIR=/usr/lib/libproxy/$pkgver/modules \ -DWITH_PERL=OFF \ - ./ || return 1 - make || return 1 + . + make +} + +check() { + cd "$builddir" + CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install } dev() { |