summaryrefslogblamecommitdiff
path: root/user/yasm/APKBUILD
blob: 9452da3c06b6104777de0df93f2bdb4f444351c5 (plain) (tree)





































                                                                                                                                                                
# Maintainer: 
pkgname=yasm
pkgver=1.3.0
pkgrel=2
pkgdesc="A rewrite of NASM to allow for multiple syntax supported (NASM, TASM, GAS, etc.)"
url="http://yasm.tortall.net/"
arch="all"
license="(BSD-2-Clause OR BSD-3-Clause) AND (Artistic-1.0 OR GPL-2.0-only OR LGPL-2.0-only)"
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.tortall.net/projects/$pkgname/releases/$pkgname-$pkgver.tar.gz"

prepare() {
	default_prepare
	cd "$builddir"
	update_config_sub
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

check() {
	cd "$builddir"
	make -j1 check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

sha512sums="572d3b45568b10f58e48f1188c2d6bcbdd16429c8afaccc8c6d37859b45635e106885d679e41d0bee78c23822108c7ae75aa7475eed5ba58057e0a6fe1b68645  yasm-1.3.0.tar.gz"