summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core')
-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
+}