summaryrefslogtreecommitdiff
path: root/extra/nasm
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/nasm
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/nasm')
-rw-r--r--extra/nasm/PKGBUILD42
-rw-r--r--extra/nasm/nasm.install20
2 files changed, 62 insertions, 0 deletions
diff --git a/extra/nasm/PKGBUILD b/extra/nasm/PKGBUILD
new file mode 100644
index 000000000..fd0720e05
--- /dev/null
+++ b/extra/nasm/PKGBUILD
@@ -0,0 +1,42 @@
+# $Id: PKGBUILD 102775 2010-12-11 05:11:43Z eric $
+# Maintainer: Aaron Griffin <aaron@archlinux.org>
+
+pkgbase=nasm
+pkgname=('nasm' 'nasm-doc')
+pkgver=2.09.04
+pkgrel=1
+arch=('i686' 'x86_64')
+url="http://www.nasm.us"
+license=('BSD')
+makedepends=('ghostscript')
+source=(http://www.nasm.us/pub/nasm/releasebuilds/${pkgver}/${pkgbase}-${pkgver}.tar.bz2)
+md5sums=('c11f083a501adae843d0bc3e7c106c73')
+sha1sums=('87fb3f1d277f57cfd86408faa28685df0c887f59')
+
+build() {
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+ ./configure --prefix=/usr
+ make everything
+}
+
+package_nasm() {
+ pkgdesc="An 80x86 assembler designed for portability and modularity"
+ depends=('glibc')
+ install=nasm.install
+
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+ make INSTALLROOT="${pkgdir}" install install_rdf
+ install -d "${pkgdir}/usr/share/info"
+ install -m644 doc/info/* "${pkgdir}/usr/share/info/"
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/nasm/LICENSE"
+}
+
+package_nasm-doc() {
+ pkgdesc="An 80x86 assembler designed for portability and modularity (manuals)"
+
+ cd "${srcdir}/${pkgbase}-${pkgver}/doc"
+ install -d "${pkgdir}/usr/share/doc/nasm/html"
+ install -m644 html/* "${pkgdir}/usr/share/doc/nasm/html/"
+ install -m644 nasmdoc.ps nasmdoc.pdf nasmdoc.txt "${pkgdir}/usr/share/doc/nasm/"
+ install -D -m644 ../LICENSE "${pkgdir}/usr/share/licenses/nasm-doc/LICENSE"
+}
diff --git a/extra/nasm/nasm.install b/extra/nasm/nasm.install
new file mode 100644
index 000000000..e4baa9808
--- /dev/null
+++ b/extra/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
+}