diff options
author | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-07-25 11:33:12 -0300 |
---|---|---|
committer | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-07-25 11:33:12 -0300 |
commit | 8b3071c77c79bbf0f373ca9b8ce0795c55d03669 (patch) | |
tree | 0b9c9ccac567cbaf87b22dcd32f10ceed2db065c /testing/nasm | |
parent | 0d18015803bebeb58911bf791653597291056095 (diff) | |
parent | 43983783a3e8bf61896eb93a2858a14bbaf3a53b (diff) |
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts:
community/compiz-bcop/PKGBUILD
community/compiz-fusion-plugins-extra/PKGBUILD
community/compiz-fusion-plugins-main/PKGBUILD
community/emerald/PKGBUILD
community/gmic/PKGBUILD
community/libcompizconfig/PKGBUILD
core/xinetd/PKGBUILD
extra/archboot/PKGBUILD
extra/kdeplasma-addons/PKGBUILD
extra/kipi-plugins/PKGBUILD
extra/libmpdclient/PKGBUILD
extra/live-media/PKGBUILD
extra/mysql/PKGBUILD
extra/pyopenssl/PKGBUILD
extra/r/PKGBUILD
extra/telepathy-mission-control/PKGBUILD
libre/libretools/PKGBUILD
multilib-testing/lib32-mesa/PKGBUILD
multilib/lib32-libldap/PKGBUILD
multilib/lib32-libldap/ntlm.patch
multilib/wine/PKGBUILD
testing/mesa/PKGBUILD
Diffstat (limited to 'testing/nasm')
-rw-r--r-- | testing/nasm/PKGBUILD | 42 | ||||
-rw-r--r-- | testing/nasm/nasm.install | 20 |
2 files changed, 62 insertions, 0 deletions
diff --git a/testing/nasm/PKGBUILD b/testing/nasm/PKGBUILD new file mode 100644 index 000000000..9085d5e61 --- /dev/null +++ b/testing/nasm/PKGBUILD @@ -0,0 +1,42 @@ +# $Id: PKGBUILD 132063 2011-07-19 17:35:27Z stephane $ +# Maintainer: Aaron Griffin <aaron@archlinux.org> + +pkgbase=nasm +pkgname=('nasm' 'nasm-doc') +pkgver=2.09.10 +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=('15c79dcb5838870a0fac15feb5fade66') +sha1sums=('ca57a7454b29e18c64018e49cdf5c832937497ab') + +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/testing/nasm/nasm.install b/testing/nasm/nasm.install new file mode 100644 index 000000000..e4baa9808 --- /dev/null +++ b/testing/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 +} |