summaryrefslogtreecommitdiff
path: root/extra/yasm/PKGBUILD
blob: 6c0be5bb6f1a515c6329f3d4752d940a43fd8270 (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
# $Id: PKGBUILD 206072 2014-02-17 01:23:38Z eric $
# Maintainer: Eric Bélanger <eric@archlinux.org>

pkgname=yasm
pkgver=1.2.0
pkgrel=4
pkgdesc="A rewrite of NASM to allow for multiple syntax supported (NASM, TASM, GAS, etc.)"
arch=('i686' 'x86_64')
url="http://www.tortall.net/projects/yasm/"
license=('BSD' 'GPL2' 'LGPL2.1' 'PerlArtistic')
depends=('glibc')
options=('staticlibs')
source=(http://www.tortall.net/projects/yasm/releases/${pkgname}-${pkgver}.tar.gz)
sha1sums=('773d28f27f83c44ac35079add0d3167ca6c1def8')

prepare() {
  cd ${pkgname}-${pkgver}
# FS#38940
  sed -i 's/#define NHASH 31/#define NHASH 4096/' modules/preprocs/nasm/nasm-pp.c
}

build() {
  cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr
  make
}

check() {
  cd ${pkgname}-${pkgver}
  make check
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -Dm644 BSD.txt "${pkgdir}/usr/share/licenses/${pkgname}/BSD.txt"
}