updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / nwcc / PKGBUILD
blobbbb0d02e4b251214be454c0f65d56ff0e64e61d4
1 # Maintainer: 458italia <svenskaparadox@gmail.com>
2 # Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
4 pkgname=nwcc
5 pkgver=0.8.2
6 pkgrel=1
7 pkgdesc="A small C compiler for Unix systems"
8 arch=('i686' 'x86_64')
9 url="http://nwcc.sourceforge.net/"
10 license=('BSD')
11 depends=('glibc')
12 source=(http://downloads.sourceforge.net/$pkgname/${pkgname}_$pkgver.tar.gz)
13 md5sums=('7b1f15d8ba3cfd977c461d48c149b358')
15 build() {
16   cd ${pkgname}_$pkgver
18   sed 's|lib64/|lib/|g' -i driver.c
19   sed 's|-Wall -W -ggdb -g||g' -i configure
21   ./configure --installprefix=/usr --nocross
22   make || return 1
24   mkdir -p "$pkgdir"/usr/{bin,lib}
25   install -m755 nwcc{,1} snake "$pkgdir"/usr/bin/
26   install -m644 libnwcc.o "$pkgdir"/usr/lib/
28   install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
31 # vim:set ts=2 sw=2 et: