summaryrefslogtreecommitdiff
path: root/user/libdmtx/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-10-11 18:41:04 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2017-10-11 18:41:04 -0500
commitb347d151746dfc803dd14becc28f3bd9f15fa06d (patch)
treeb792cd4757384ef27311dbd51abf2c2803a6d736 /user/libdmtx/APKBUILD
parentffdf549e56bd5631751d64708b143852e3ec2b1e (diff)
downloadpackages-b347d151746dfc803dd14becc28f3bd9f15fa06d.tar.gz
packages-b347d151746dfc803dd14becc28f3bd9f15fa06d.tar.bz2
packages-b347d151746dfc803dd14becc28f3bd9f15fa06d.tar.xz
packages-b347d151746dfc803dd14becc28f3bd9f15fa06d.zip
user/libdmtx: new package
Diffstat (limited to 'user/libdmtx/APKBUILD')
-rw-r--r--user/libdmtx/APKBUILD47
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"