blob: 538cbfca2f487a235cee342f8800bb93bd9a18b0 (
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
54
55
56
57
|
# Contributor: Andreas Baumann <abaumann at yahoo dot com>
# Contributor: Chris Brannon <cmbrannon (at) cox.net>
pkgname=pcc-libs-cvs
pkgver=20230806
pkgrel=2
pkgdesc="Libraries for the Portable C Compiler."
arch=('i686' 'x86_64')
url="http://pcc.ludd.ltu.se/"
license=('custom')
provides=(pcc-libs)
conflicts=(pcc-libs)
#makedepends=('cvs')
makedepends=('git')
options=('!lto')
source=($pkgname::git+https://repo.or.cz/pcc-libs.git license)
md5sums=('SKIP' '51f6cc02b26af53f26cfe87494ca5c87')
pkgver() {
cd "$srcdir/$pkgname"
git log -1 --date=format:"%Y%m%d" --format="%ad"
}
#_cvsroot=":pserver:anonymous@pcc.ludd.ltu.se:/cvsroot"
#_cvsmod="pcc-libs"
build() {
cd "$srcdir/$pkgname"
# msg "Connecting to pcc.ludd.ltu.se CVS server (module $_cvsmod)...."
# if [ -d $_cvsmod/CVS ]; then
# cd $_cvsmod
# cvs -z3 update -d
# else
# cvs -z3 -d $_cvsroot co -D $pkgver -f $_cvsmod
# cd $_cvsmod
# fi
# msg "CVS checkout done or server timeout"
# msg "Starting make..."
# rm -rf "$srcdir/$_cvsmod-build"
# cp -r "$srcdir/$_cvsmod" "$srcdir/$_cvsmod-build"
# cd "$srcdir/$_cvsmod-build"
./configure --prefix=/usr || return 1
make CC=gcc || return 1
}
package() {
# cd "$srcdir/$_cvsmod-build"
cd "$srcdir/$pkgname"
make DESTDIR=$pkgdir install || return 1
install -D -m0644 ${srcdir}/license ${pkgdir}/usr/share/licenses/${pkgname}/license
}
|