summaryrefslogtreecommitdiff
path: root/extra/nasm/PKGBUILD
blob: 7e01e55f507d9b13eed79f939ccae47583d5018f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# $Id: PKGBUILD 153792 2012-03-19 18:12:16Z stephane $
# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
# Contributor: Aaron Griffin <aaron@archlinux.org>

pkgbase=nasm
pkgname=('nasm' 'nasm-doc')
pkgver=2.10
pkgrel=1
arch=('i686' 'x86_64' 'mips64el')
url="http://www.nasm.us"
license=('BSD')
makedepends=('ghostscript')
source=(http://www.nasm.us/pub/nasm/releasebuilds/${pkgver}/${pkgbase}-${pkgver}.tar.bz2)
sha1sums=('acdcae5366230e2e19b2ad36f952df0232c80950')

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
}