aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Klitzing <aklitzing@gmail.com>2017-09-21 14:41:01 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2017-10-03 18:40:08 +0000
commitd21663c4003cf2136ee3950c662055551eec9fd0 (patch)
tree5671b26e1f6715e086d7cd04ba2fd02c25781a2b
parent1cafd32b6a9a53d30b6ed8e905f3b9efdd432d35 (diff)
downloadaports-d21663c4003cf2136ee3950c662055551eec9fd0.tar.gz
aports-d21663c4003cf2136ee3950c662055551eec9fd0.tar.bz2
aports-d21663c4003cf2136ee3950c662055551eec9fd0.tar.xz
main/libqrencode: upgrade to 4.0.0 and modernize abuild
-rw-r--r--main/libqrencode/APKBUILD37
1 files changed, 13 insertions, 24 deletions
diff --git a/main/libqrencode/APKBUILD b/main/libqrencode/APKBUILD
index 630bf28883..1e9726017b 100644
--- a/main/libqrencode/APKBUILD
+++ b/main/libqrencode/APKBUILD
@@ -1,33 +1,25 @@
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=libqrencode
-pkgver=3.4.3
-pkgrel=1
+pkgver=4.0.0
+pkgrel=0
pkgdesc="library for encoding QR codes"
url="http://fukuchi.org/works/qrencode/index.html"
arch="all"
license="LGPL"
-depends=""
-depends_dev="libpng-dev"
-makedepends="$depends_dev"
-install=""
+makedepends="libpng-dev libtool"
subpackages="$pkgname-dev $pkgname-doc"
source="http://fukuchi.org/works/qrencode/qrencode-$pkgver.tar.bz2"
+builddir="$srcdir/qrencode-$pkgver"
-_builddir="$srcdir"/qrencode-$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
- update_config_sub || return 1
+ cd "$builddir"
+ default_prepare
+ update_config_sub
}
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -35,16 +27,13 @@ build() {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
- --localstatedir=/var \
- || return 1
- make || return 1
+ --localstatedir=/var
+ make
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
-md5sums="89a90a3b8cbca60ac412b2e0e0c776e7 qrencode-3.4.3.tar.bz2"
-sha256sums="dfd71487513c871bad485806bfd1fdb304dedc84d2b01a8fb8e0940b50597a98 qrencode-3.4.3.tar.bz2"
-sha512sums="eba9d6220d0d5e08da614bd05904a08e11c45b7b293c45aa8417345c3267eae8790e83d9338b6cbadbd3fe15ac4579e0fb9e4e23b4f7e1d56e5fb3729afb9cf5 qrencode-3.4.3.tar.bz2"
+sha512sums="d4140d77fce3a1c39735cc3e98e3a19018daaa08c870644f71727d27ffb17711e76b4ed4e51718d90d812e78df75fe575617580ea9b1bf210438f8fd1734204e qrencode-4.0.0.tar.bz2"