aboutsummaryrefslogtreecommitdiffstats
path: root/main/libqrencode/APKBUILD
blob: 84b5ecec2b4479346a5f6c6082107351a53562f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=libqrencode
pkgver=4.0.0
pkgrel=1
pkgdesc="Library for encoding QR codes"
url="https://fukuchi.org/works/qrencode/index.html"
arch="all"
options="!check"  # No test suite.
license="LGPL-2.1+"
makedepends="libpng-dev libtool"
subpackages="$pkgname-dev $pkgname-doc"
source="http://fukuchi.org/works/qrencode/qrencode-$pkgver.tar.bz2"
builddir="$srcdir/qrencode-$pkgver"

prepare() {
	cd "$builddir"
	default_prepare
	update_config_sub
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="d4140d77fce3a1c39735cc3e98e3a19018daaa08c870644f71727d27ffb17711e76b4ed4e51718d90d812e78df75fe575617580ea9b1bf210438f8fd1734204e  qrencode-4.0.0.tar.bz2"