summaryrefslogblamecommitdiff
path: root/user/libdmtx/APKBUILD
blob: 3c296d019c5bf995de4e4f7006f2964b4158733e (plain) (tree)
1
2
3
4
5
6
7
8
9



                                                  
        


                                                               
                      
          
              
                                       
                                                                         































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

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"