diff options
-rw-r--r-- | user/libdmtx/APKBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/user/libdmtx/APKBUILD b/user/libdmtx/APKBUILD new file mode 100644 index 000000000..3d37f653f --- /dev/null +++ b/user/libdmtx/APKBUILD @@ -0,0 +1,47 @@ +# 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" |