aboutsummaryrefslogtreecommitdiffstats
path: root/PKGBUILD
blob: 2c1a1d094867cdd80895fa3fc974a43e56252978 (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
pkgname=clean
pkgver=2.4
_ver=24
pkgrel=3

pkgdesc="A pure and lazy function programming language"
url="http://wiki.clean.cs.ru.nl/Clean"
arch=('x86_64' 'i686')
license=('LGPL')

install=clean.install
source=("http://clean.cs.ru.nl/download/Clean${_ver}/linux/clean${pkgver}${_suffix}.tar.gz")

md5sums=('7fb1ec59242df939bb3b6aea6e4650c6')
if [[ "$CARCH" = "x86_64" ]]; then
	_suffix=_64
	md5sums+=('bb7adb884c2c3fafb0465d8ca2a26d09')
else
	md5sums+=('c60ac576f0afb57a5f51091abde0107c')
fi

prepare() {
	cd clean/bin
	./patch_bin clm CLEANLIB /opt/clean/lib/exe
	./patch_bin clm CLEANILIB /opt/clean/lib
	./patch_bin clm CLEANPATH /opt/clean/lib/StdEnv
}

package() {
	cd clean
	make INSTALL_DIR="$pkgdir"/opt/clean
	mkdir -p "$pkgdir"/usr/{bin,share/man/man1}
	ln -s /opt/clean/man/man1/clm.1.gz "$pkgdir"/usr/share/man/man1
	install -Dm644 CleanLicenseConditions.txt "$pkgdir"/usr/share/licenses/clean/LICENSE
}