aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2013-10-21 22:47:56 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2015-06-01 16:02:21 +0200
commite1f42a70120a65678828bdc5312e7f87768571cb (patch)
tree6e3d4718cb37138a37728ebc00a576bc30ab93f5
downloadpkgbuilds-e1f42a70120a65678828bdc5312e7f87768571cb.tar.xz
clean: Adopted package
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD38
-rw-r--r--clean.install10
3 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 0000000..a2def6e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+# Generated by makepkg 4.2.1
+# Mon Jun 1 13:48:39 UTC 2015
+pkgbase = clean
+ pkgdesc = A pure and lazy function programming language
+ pkgver = 2.4
+ pkgrel = 3
+ url = http://wiki.clean.cs.ru.nl/Clean
+ install = clean.install
+ arch = x86_64
+ arch = i686
+ license = LGPL
+ source = clean.install
+ source = http://clean.cs.ru.nl/download/Clean24/linux/clean2.4_64.tar.gz
+ md5sums = 7fb1ec59242df939bb3b6aea6e4650c6
+ md5sums = bb7adb884c2c3fafb0465d8ca2a26d09
+
+pkgname = clean
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..755bc10
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Johannes Löthberg <johannes@kyriasis.com
+# Contributor: Carl Mueller archlinux at carlm e4ward com
+
+pkgname=clean
+pkgver=2.4
+_ver=24
+pkgrel=3
+pkgdesc="A pure and lazy function programming language"
+arch=('x86_64' 'i686')
+url="http://wiki.clean.cs.ru.nl/Clean"
+license=('LGPL')
+install=clean.install
+md5sums=('7fb1ec59242df939bb3b6aea6e4650c6')
+if [[ "$CARCH" = "x86_64" ]]; then
+ _suffix=_64
+ md5sums+=('bb7adb884c2c3fafb0465d8ca2a26d09')
+else
+ md5sums+=('c60ac576f0afb57a5f51091abde0107c')
+fi
+source=('clean.install' "http://clean.cs.ru.nl/download/Clean${_ver}/linux/clean${pkgver}${_suffix}.tar.gz")
+
+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
+}
+
+# vim: set ts=4 sw=4 noet:
diff --git a/clean.install b/clean.install
new file mode 100644
index 0000000..3a9e6fc
--- /dev/null
+++ b/clean.install
@@ -0,0 +1,10 @@
+post_install() {
+ echo "This package installs it's binaries to /opt/clean/bin/. If you wish to use"
+ echo "them directly please add that directory to your \$PATH variable"
+}
+
+post_remove() {
+ echo "Remember to remove /opt/clean/bin/ from your path if you decided to add it"
+}
+
+# vim: set ts=4 sw=4 noet: