aboutsummaryrefslogtreecommitdiffstats
path: root/main/libqrencode/APKBUILD
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2014-01-13 20:38:55 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2014-01-13 20:39:20 +0000
commita4886686cdf18ed19670b17bf92090d9163f5989 (patch)
tree6d32a9507b4684dd20723db73a95c1ee41cdce28 /main/libqrencode/APKBUILD
parentdbf4cb339e60684036842e52fc715762e89602d5 (diff)
downloadaports-a4886686cdf18ed19670b17bf92090d9163f5989.tar.bz2
aports-a4886686cdf18ed19670b17bf92090d9163f5989.tar.xz
main/libqrencode: new aport
Diffstat (limited to 'main/libqrencode/APKBUILD')
-rw-r--r--main/libqrencode/APKBUILD50
1 files changed, 50 insertions, 0 deletions
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 <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"