blob: b778fd485ccb4575abe367d9fa70ed0bf2dea765 (
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
53
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Cág <ca6c@bitmessage.ch>
pkgname=pcc
pkgver=20171006
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 \
|| return 1
make || return 1
}
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="5008e745fcc478c8c7e3e6b83cb85b58bc30b65cfa891ce5b50699fb70bdf18a2cd64cf70d570ef1e0a14219d460b5c58e80b46b282553ca41d9e064c7884e22 pcc-20171006.tgz"
|