blob: a84dd1e63c2c0ab88a68215b5aec21c63334ae71 (
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
43
44
45
46
47
48
49
50
51
52
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Cág <ca6c@bitmessage.ch>
pkgname=pcc
pkgver=20190422
pkgrel=0
pkgdesc="The portable C compiler."
url="http://pcc.ludd.ltu.se/"
arch="x86 x86_64"
license="BSD"
depends="pcc-libs-dev>=$pkgver-r0"
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
cd "$builddir"
update_config_sub
sed -i -e 's/AC_CHECK_PROG(strip,strip,yes,no)//' \
configure.ac
sed -i -e 's/AC_SUBST(strip)//' \
configure.ac
}
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
# Don't conflict with gcc-doc.
mv "$pkgdir"/usr/share/man/man1/cpp.1 \
"$pkgdir"/usr/share/man/man1/$pkgname-cpp.1
}
sha512sums="c989f008e2c1275f6c3adbc98fcf32a03380a868076326392d6cc7d01e72219171879d35e4c529c97cfd9bd55ee4131050dd5b3d691eeaeec1ecc02a34ee872a pcc-20190422.tgz"
|