aboutsummaryrefslogtreecommitdiffstats
path: root/main/yasm
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-09-09 23:55:41 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-09-11 13:41:37 +0000
commit56f299ca79698d3001e5308ff240ab97e08f67e3 (patch)
tree98bfc8387517c2d0dbb84852f675d84d4618d3f7 /main/yasm
parentc254446fa06fadc2e027e54ff69847c5ab93cd77 (diff)
downloadaports-56f299ca79698d3001e5308ff240ab97e08f67e3.tar.bz2
aports-56f299ca79698d3001e5308ff240ab97e08f67e3.tar.xz
main/yasm: modernize APKBUILD and add check
Diffstat (limited to 'main/yasm')
-rw-r--r--main/yasm/APKBUILD28
1 files changed, 15 insertions, 13 deletions
diff --git a/main/yasm/APKBUILD b/main/yasm/APKBUILD
index 813c832c36..50fb35eba0 100644
--- a/main/yasm/APKBUILD
+++ b/main/yasm/APKBUILD
@@ -1,38 +1,40 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=yasm
pkgver=1.3.0
-pkgrel=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="BSD"
-depends=""
-makedepends=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.tortall.net/projects/$pkgname/releases/$pkgname-$pkgver.tar.gz"
-_builddir="$srcdir"/$pkgname-$pkgver
+builddir="$srcdir/$pkgname-$pkgver"
+
prepare() {
- cd "$_builddir"
- update_config_sub || return 1
+ default_prepare
+ cd "$builddir"
+ update_config_sub
}
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
- --prefix=/usr \
- || return 1
- make || return 1
+ --prefix=/usr
+ make
+}
+
+check() {
+ cd "$builddir"
+ make -j1 check
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="$pkgdir" install
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
-md5sums="fc9e586751ff789b34b1f21d572d96af yasm-1.3.0.tar.gz"
-sha256sums="3dce6601b495f5b3d45b59f7d2492a340ee7e84b5beca17e48f862502bd5603f yasm-1.3.0.tar.gz"
sha512sums="572d3b45568b10f58e48f1188c2d6bcbdd16429c8afaccc8c6d37859b45635e106885d679e41d0bee78c23822108c7ae75aa7475eed5ba58057e0a6fe1b68645 yasm-1.3.0.tar.gz"