upgpkg: maxima 5.46.0-9 (sbcl rebuild)
[arch-packages.git] / mcpp / trunk / PKGBUILD
blobb1f8063f8d36a555d6f95d7dea1be07cf125e849
1 # Contributor: Alexander Baldeck <alexander@archlinux.org>
2 # Maintainer: Jan de Groot <jgc@archlinux.org>
4 pkgname=mcpp
5 pkgver=2.7.2
6 pkgrel=8
7 pkgdesc="Matsui's CPP implementation precisely conformed to standards"
8 arch=('x86_64')
9 license=('custom')
10 url="http://mcpp.sourceforge.net"
11 depends=('glibc')
12 source=(https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz
13         namlen.patch
14         fs28284.patch)
15 sha256sums=('3b9b4421888519876c4fc68ade324a3bbd81ceeb7092ecdbbc2055099fcb8864'
16             'ee8bf97c42150d2424a5984baec8227a44538e15c23cec93aabfc65daf9a6081'
17             '27e42d8cae06327370cf0f9a8118d23a2f9368b87f24b38a9cb9c0c4eaeadb4e')
19 prepare() {
20   cd $pkgname-$pkgver
21   patch -Np1 -i ../namlen.patch
22   patch -Np1 -i ../fs28284.patch
25 build() {
26   cd $pkgname-$pkgver
27   ./configure --prefix=/usr --enable-mcpplib --disable-static
28   make
31 package() {
32   cd $pkgname-$pkgver
33   make DESTDIR="${pkgdir}" install
35   install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
36   ln -sf ../../doc/${pkgname}/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/"