commit 546a3a53bfc4a41d7326fefac32aa24f7f2aef95 Author: xhaa123 Date: Wed Apr 17 09:45:35 2024 +0800 nasm 2.16.02-1 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..08e4f01 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Future Linux Team +pkgname=nasm +pkgver=2.16.02 +pkgrel=1 +pkgdesc="80x86 assembler designed for portability and modularity" +arch=('x86_64') +url="https://www.nasm.us" +license=('BSD') +depends=('glibc') +source=(https://www.nasm.us/pub/nasm/releasebuilds/${pkgver}/${pkgname}-${pkgver}.tar.xz + https://www.nasm.us/pub/nasm/releasebuilds/${pkgver}/${pkgname}-${pkgver}-xdoc.tar.xz) +sha256sums=(1e1b942ea88f22edae89659e15be26fa027eae0747f51413540f52d4eac4790d + 45fe7c1abd55045e10a4e97319ff393710321288eec6ea4f9ecc77b95665a8c4) + +build() { + cd ${pkgname}-${pkgver} + + ${CONFIGURE} + + make +} + +package() { + cd ${pkgname}-${pkgver} + + make DESTDIR=${pkgdir} install + + install -m755 -d ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}/html + cp -v doc/html/*.html ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}/html + cp -v doc/*.{txt,ps,pdf} ${pkgdir}/usr/share/doc/${pkgname}-${pkgver} +}