DEADSOFTWARE

first cpc release
[cpc.git] / crux / cpc-32 / Pkgfile
1 # Description: A command line Copmponent Pascal Compiler
2 # URL: https://deadsoftware.ru
3 # Maintainer: DeaDDooMER, deaddoomer@deadsoftware.ru
5 name=cpc-32
6 version=0.1
7 release=1
8 source=(https://deadsoftware.ru/projects/cpc/release/cpc-v${version}.src.tar.gz)
10 build() {
11 cd bootstrap-src
13 ./make-stage0c.sh
14 ./make-stage1.sh
15 ./make-stage2.sh
17 install -d $PKG/usr/bin
18 install -D -m755 stage2/i486/{cpc486,cpl486,cpfront} $PKG/usr/bin/
19 ln -s cpc486 $PKG/usr/bin/cpc
20 ln -s cpl486 $PKG/usr/bin/cpl
22 install -d $PKG/usr/share/man/man1
23 install -D -m644 man/cp{c,l}.1 $PKG/usr/share/man/man1
24 ln -s cpc.1.gz $PKG/usr/share/man/man1/cpc486.1.gz
25 ln -s cpc.1.gz $PKG/usr/share/man/man1/cpfront.1.gz
26 ln -s cpl.1.gz $PKG/usr/share/man/man1/cpl486.1.gz
28 install -d $PKG/usr/share/cpfront/C
29 install -D -m644 C/SYSTEM.{c,h} $PKG/usr/share/cpfront/C
30 }