iglunix/pkgs/nasm/build.sh

37 lines
596 B
Bash
Raw Normal View History

2021-02-04 16:56:28 +00:00
pkgname=nasm
pkgver=2.15
pkgrel=1
bad="gmake"
2021-02-06 12:03:17 +00:00
ext="doc"
2021-02-04 16:56:28 +00:00
fetch(){
curl "https://www.nasm.us/pub/nasm/releasebuilds/$pkgver/$pkgname-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
}
build(){
cd $pkgname-$pkgver
./configure \
--build=x86_64-unknown-linux-musl \
2021-02-06 12:03:17 +00:00
--host=x86_64-unknown-linux-musl \
2021-02-04 16:56:28 +00:00
--prefix=/usr
gmake
}
2021-02-06 12:03:17 +00:00
package() {
2021-02-04 16:56:28 +00:00
cd $pkgname-$pkgver
gmake DESTDIR="$pkgdir" install
2021-02-06 12:03:17 +00:00
rm -r $pkgdir/usr/share
}
package_doc() {
cd $pkgname-$pkgver
gmake DESTDIR="$pkgdir" install
rm -r $pkgdir/usr/bin
2021-02-04 16:56:28 +00:00
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}