diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-02-10 23:30:04 -0600 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-02-16 18:07:22 +0000 |
commit | 9c63848b584bab4478e05725b9880a01d8ca38e4 (patch) | |
tree | 23f7892766a4ae7301fe1cb8cf17ced68bfac4f0 /main/libproxy | |
parent | ebc31e26e81752a36120d747e804be3d9679f901 (diff) | |
download | aports-9c63848b584bab4478e05725b9880a01d8ca38e4.tar.bz2 aports-9c63848b584bab4478e05725b9880a01d8ca38e4.tar.xz |
main/libproxy: py2->py3, modernise, add check
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() { |