jobextra/nasm/PKGBUILD

45 lines
1.3 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=nasm
pkgver=2.16.01
pkgrel=01
pkgdesc='80x86 assembler designed for portability and modularity'
url='https://www.nasm.us'
depends=('glibc')
makedepends=('perl-font-ttf' 'perl-sort-versions' 'fontconfig' 'adobe-source-sans-pro-fonts'
'ttf-liberation' 'ghostscript' 'xmlto' 'asciidoc' 'diffutils')
source=(https://www.nasm.us/pub/nasm/releasebuilds/${pkgver}/${pkgname}-${pkgver}.tar.xz)
build() {
cd ${pkgname}-${pkgver}
./configure --prefix=/usr
make
}
check() {
cd ${pkgname}-${pkgver}
make -j1 -C test golden test diff
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/nasm
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('BSD')
sha256sums=(c77745f4802375efeee2ec5c0ad6b7f037ea9c87c92b149a9637ff099f162558) # nasm-2.16.01.tar.xz
## 62ce358b41a41e5f21bcd2de3439dfaf8622785f036e97d0441799ab1a7ea9ca nasm-2.16.01-01-x86_64.pkg.tar.lz