summaryrefslogtreecommitdiffstats
path: root/main/yasm/APKBUILD
blob: 6ff4b75731dde24c92de302ff5e6fe436b85933f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=yasm
pkgver=1.2.0
pkgrel=1
pkgdesc="A rewrite of NASM to allow for multiple syntax supported (NASM, TASM, GAS, etc.)"
url="http://www.tortall.net/projects/yasm/"
arch="all"
license="custom"
depends=
makedepends=
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.tortall.net/projects/$pkgname/releases/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	update_config_sub
}

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

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
md5sums="4cfc0686cf5350dd1305c4d905eb55a6  yasm-1.2.0.tar.gz"