diff options
Diffstat (limited to 'main/libqrencode/APKBUILD')
-rw-r--r-- | main/libqrencode/APKBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/main/libqrencode/APKBUILD b/main/libqrencode/APKBUILD new file mode 100644 index 000000000..0948571b8 --- /dev/null +++ b/main/libqrencode/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: William Pitcock <nenolod@dereferenced.org> +# Maintainer: William Pitcock <nenolod@dereferenced.org> +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" |