# Contributor: Sören Tempel # Maintainer: Cág pkgname=pcc pkgver=20180106 pkgrel=0 pkgdesc="The portable C compiler." url="http://pcc.ludd.ltu.se/" arch="x86 x86_64" license="BSD" depends="pcc-libs-dev" depends_dev="" makedepends="byacc flex" install="" subpackages="$pkgname-doc" source="ftp://pcc.ludd.ltu.se/pub/$pkgname/$pkgname-$pkgver.tgz" builddir="$srcdir/"$pkgname-$pkgver prepare() { default_prepare || return 1 cd "$builddir" update_config_sub || return 1 sed -i -e 's/AC_CHECK_PROG(strip,strip,yes,no)//' \ configure.ac || return 1 sed -i -e 's/AC_SUBST(strip)//' \ configure.ac || return 1 } build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --disable-stripping make } package() { cd "$builddir" make DESTDIR="$pkgdir" install || return 1 # Don't conflict with gcc-doc. mv "$pkgdir"/usr/share/man/man1/cpp.1 \ "$pkgdir"/usr/share/man/man1/$pkgname-cpp.1 || return 1 } sha512sums="2bb195a85cc9dd328b844e82ee924ad07b0148e9d479471a10c75547a611dd7678539c69cd7860cbc6cf37137c7ce969995a4bf9e5f3aa6858d1c8b57c351d78 pcc-20180106.tgz"