summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2016-04-26 17:24:49 (GMT)
committerBritney Fransen <brfransen@gmail.com>2016-04-26 17:24:49 (GMT)
commit99eb937d99d752482ab3fb730fa04ed814dc5eb8 (patch)
treed712edb8f00c8a0dfe01dfdbb071baf669c5aa9d /abs
parent53e85b804cf8ff2c59bbebe475552f2a8002ab3a (diff)
downloadlinhes_pkgbuild-99eb937d99d752482ab3fb730fa04ed814dc5eb8.zip
linhes_pkgbuild-99eb937d99d752482ab3fb730fa04ed814dc5eb8.tar.gz
linhes_pkgbuild-99eb937d99d752482ab3fb730fa04ed814dc5eb8.tar.bz2
nasm: update to 2.11.08
Diffstat (limited to 'abs')
-rw-r--r--abs/core/nasm/PKGBUILD34
-rw-r--r--abs/core/nasm/nasm.install20
2 files changed, 39 insertions, 15 deletions
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 <aaron@archlinux.org>
-# Committer: Judd Vinet <jvinet@zeroflux.org>
+# $Id$
+# Maintainer: Eric BĂ©langer <eric@archlinux.org>
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
+}