summaryrefslogblamecommitdiff
path: root/user/libdmtx/APKBUILD
blob: ce8e9f44252d4e06bcdd4c922ad2e51172ed7b58 (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.5
pkgrel=0
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="$pkgname-$pkgver.tar.gz::https://github.com/dmtx/$pkgname/archive/v$pkgver.tar.gz"

prepare() {
	cd "$builddir"
	default_prepare
	./autogen.sh
}

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 CFLAGS="-std=c99" check
	test/simple_test/simple_test
}

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

sha512sums="c4bccc9eff4a93b6bb417ed23ed46e82cc98b650a94be40479d192af8537ee02a16700fbbd8f2271035ff8b804c40ab6461825d94bd80a3081d3a4b3988ea22a  libdmtx-0.7.5.tar.gz"