summaryrefslogblamecommitdiff
path: root/PKGBUILD
blob: e3e06b01b1af6e0f8bdc79fe051cf4c995c2149e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                            
          
                       
        
                                                    
            
                              



                                       
                

                   
                         
                                                                                                                                                       
 
         
                         

                                       
           
                         
                                                                                                 
 
 
# Maintainer: Gabriel Jensen
pkgname=zp
pkgver=1.0.0_89.08e2884
pkgrel=1
pkgdesc="Low-level system and algorithmics library."
arch=("any")
url="https://mandelbrot.dk/zp"
makedepends=("git")
makedepends_x86_64=("nasm")
makedepends_i686=("nasm")
source=("git+https://mandelbrot.dk/zp")
license=("MPL2")
sha512sums=("SKIP")
pkgver() {
	cd "${srcdir}/zp"
	printf "%s_%s.%s" "$(git describe --tags --abbrev=0)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | sed "s/-\(dev\|rel\)//g"
}
build() {
	cd "${srcdir}/zp"
	make -C"zp" -j$(($(nproc)+0x1))
}
package() {
	cd "${srcdir}/zp"
	make -C"zp" HDRDIR="${pkgdir}/usr/include" LIBDIR="${pkgdir}/usr/lib" shrlib=true install
}