summaryrefslogblamecommitdiff
path: root/user/libdmtx/APKBUILD
blob: 3d37f653f127ff93c16eed9c248e656c9306b954 (plain) (tree)














































                                                                                                                                                                   
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libdmtx
pkgver=0.7.4
pkgrel=0
pkgdesc="Library for creating and reading Data Matrix barcodes"
url="http://libdmtx.sourceforge.net/"
arch="all"
license="2-BSD"
depends=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://downloads.sourceforge.net/libdmtx/libdmtx-$pkgver.tar.gz"
builddir="$srcdir/libdmtx-$pkgver"

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

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

check() {
	cd "$builddir"
	make check
	test/simple_test/simple_test
}

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

sha512sums="307aeb30506e60fc44550d1bb86081634f0718d53e7b878b45b0e704e75c5996e27285a16881b7c3a93cafa9a9b125175dadc0f0c2c2f976878666eb652108ae  libdmtx-0.7.4.tar.gz"