From a4886686cdf18ed19670b17bf92090d9163f5989 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Mon, 13 Jan 2014 20:38:55 +0000 Subject: main/libqrencode: new aport --- main/libqrencode/APKBUILD | 50 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 main/libqrencode/APKBUILD (limited to 'main/libqrencode') diff --git a/main/libqrencode/APKBUILD b/main/libqrencode/APKBUILD new file mode 100644 index 0000000000..0948571b8d --- /dev/null +++ b/main/libqrencode/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: William Pitcock +# Maintainer: William Pitcock +pkgname=libqrencode +pkgver=3.4.3 +pkgrel=0 +pkgdesc="library for encoding QR codes" +url="http://fukuchi.org/works/qrencode/index.html" +arch="all" +license="LGPL" +depends="" +depends_dev="" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev $pkgname-doc" +source="http://fukuchi.org/works/qrencode/qrencode-$pkgver.tar.bz2" + +_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 +} + +build() { + cd "$_builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +md5sums="89a90a3b8cbca60ac412b2e0e0c776e7 qrencode-3.4.3.tar.bz2" +sha256sums="dfd71487513c871bad485806bfd1fdb304dedc84d2b01a8fb8e0940b50597a98 qrencode-3.4.3.tar.bz2" +sha512sums="eba9d6220d0d5e08da614bd05904a08e11c45b7b293c45aa8417345c3267eae8790e83d9338b6cbadbd3fe15ac4579e0fb9e4e23b4f7e1d56e5fb3729afb9cf5 qrencode-3.4.3.tar.bz2" -- cgit v1.2.3