summaryrefslogtreecommitdiff
path: root/user/yasm/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-18 00:39:04 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-18 00:39:04 -0500
commitc896aec32eda4c1e303e53c546e2120e4986a7fb (patch)
tree85e142599299955e233f3e65db9c5b2975453075 /user/yasm/APKBUILD
parent7e076e2331d3f7c9acc951a22ea9c5bd9be9b6a3 (diff)
downloadpackages-c896aec32eda4c1e303e53c546e2120e4986a7fb.tar.gz
packages-c896aec32eda4c1e303e53c546e2120e4986a7fb.tar.bz2
packages-c896aec32eda4c1e303e53c546e2120e4986a7fb.tar.xz
packages-c896aec32eda4c1e303e53c546e2120e4986a7fb.zip
user/yasm: pull in, fix up
Diffstat (limited to 'user/yasm/APKBUILD')
-rw-r--r--user/yasm/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/user/yasm/APKBUILD b/user/yasm/APKBUILD
new file mode 100644
index 000000000..9452da3c0
--- /dev/null
+++ b/user/yasm/APKBUILD
@@ -0,0 +1,38 @@
+# 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"