# Maintainer: Darjan Krijan (DarenK) # Installs Sume binary and library from https://github.com/darenk/sume pkgname=sume-git _pkgbasename=sume pkgver=0.1.0.r100.gd49c74c pkgrel=1 pkgdesc="Surface metrology command line tool and library." arch=('any') url="https://github.com/darenk/sume" license=('GPL3') depends=('pkg-config' 'cpio' 'imagemagick' 'libpng' 'zlib' 'libarchive' 'xz' 'libxml2' 'mhash') provides=($_pkgname) conflicts=(${_pkgbasename}) source=("${pkgname}::git+https://github.com/darenk/${_pkgbasename}.git") md5sums=('SKIP') pkgver() { cd ${srcdir}/${pkgname} git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { cd ${srcdir}/${pkgname} export CFLAGS="-march=native" ./configure --prefix=/usr make } package() { cd ${srcdir}/${pkgname} make DESTDIR=${pkgdir} install }