From 99eb937d99d752482ab3fb730fa04ed814dc5eb8 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Tue, 26 Apr 2016 17:24:49 +0000 Subject: nasm: update to 2.11.08 --- abs/core/nasm/PKGBUILD | 34 +++++++++++++++++++--------------- abs/core/nasm/nasm.install | 20 ++++++++++++++++++++ 2 files changed, 39 insertions(+), 15 deletions(-) create mode 100644 abs/core/nasm/nasm.install diff --git a/abs/core/nasm/PKGBUILD b/abs/core/nasm/PKGBUILD index a9baa88..eff9c02 100644 --- a/abs/core/nasm/PKGBUILD +++ b/abs/core/nasm/PKGBUILD @@ -1,25 +1,29 @@ -# $Id: PKGBUILD 74603 2010-03-31 18:55:53Z giovanni $ -# Maintainer: Aaron Griffin -# Committer: Judd Vinet +# $Id$ +# Maintainer: Eric BĂ©langer pkgname=nasm -pkgver=2.08.01 +pkgver=2.11.08 pkgrel=1 -pkgdesc="80x86 assembler designed for portability and modularity" -url="http://www.nasm.us" -license=('LGPL') +pkgdesc="An 80x86 assembler designed for portability and modularity" arch=('i686' 'x86_64') +url="http://www.nasm.us" +license=('BSD') depends=('glibc') -source=(http://www.nasm.us/pub/nasm/releasebuilds/${pkgver}/${pkgname}-${pkgver}.tar.bz2) -md5sums=('1e3ebc1289c2be5963571c0937b7a211') +install=nasm.install +source=(http://www.nasm.us/pub/nasm/releasebuilds/${pkgver}/${pkgname}-${pkgver}.tar.xz) +sha1sums=('6908296ac437b3ade79fadfaad0efcfd99582f70') build() { - cd "${srcdir}/${pkgname}-${pkgver}" - - ./configure --prefix=/usr || return 1 - make || return 1 + cd ${pkgname}-${pkgver} + ./configure --prefix=/usr + make + make -C doc info } + package() { - cd "${srcdir}/${pkgname}-${pkgver}" - make INSTALLROOT="${pkgdir}" install || return 1 + cd ${pkgname}-${pkgver} + make INSTALLROOT="${pkgdir}" install install_rdf + install -dm755 "${pkgdir}"/usr/share/info + install -m644 doc/info/* "${pkgdir}"/usr/share/info/ + install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/nasm/LICENSE } diff --git a/abs/core/nasm/nasm.install b/abs/core/nasm/nasm.install new file mode 100644 index 0000000..e4baa98 --- /dev/null +++ b/abs/core/nasm/nasm.install @@ -0,0 +1,20 @@ +infodir=usr/share/info +filelist=(nasm.info) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file.gz $infodir/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null + done +} -- cgit v0.12