summaryrefslogblamecommitdiff
path: root/user/libdmtx/APKBUILD
blob: 1075dca3f32590829a63acdc137daa34a97290dd (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="autoconf automake libtool"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/dmtx/$pkgname/archive/v$pkgver.tar.gz"

prepare() {
	default_prepare
	./autogen.sh
}

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

check() {
	make CFLAGS="-std=c99" check
	test/simple_test/simple_test
}

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

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