DEADSOFTWARE

update docu
[cpc.git] / crux / cpc / Pkgfile
1 # Description: A command line Copmponent Pascal Compiler
2 # URL: https://deadsoftware.ru
3 # Maintainer: DeaDDooMER, deaddoomer@deadsoftware.ru
5 name=cpc
6 version=0.2
7 release=1
8 source=(https://deadsoftware.ru/projects/cpc/release/cpc-v${version}.src.tar.gz)
10 build() {
11 cd cpc-v${version}
13 CC=gcc ./make-all.sh -b 486 native linux
15 install -d $PKG/usr/bin
16 install -D -m755 stage2/{cpc486,cpl486,cpfront} $PKG/usr/bin/
17 ln -s cpc486 $PKG/usr/bin/cpc
18 ln -s cpl486 $PKG/usr/bin/cpl
20 install -d $PKG/usr/share/man/man1
21 install -D -m644 man/cp{c,l}.1 $PKG/usr/share/man/man1
22 ln -s cpc.1.gz $PKG/usr/share/man/man1/cpc486.1.gz
23 ln -s cpc.1.gz $PKG/usr/share/man/man1/cpfront.1.gz
24 ln -s cpl.1.gz $PKG/usr/share/man/man1/cpl486.1.gz
26 install -d $PKG/usr/share/cpfront/C
27 install -D -m644 C/SYSTEM.{c,h} $PKG/usr/share/cpfront/C
28 }