diff options
author | Alain Kalker | 2015-07-01 17:02:29 +0200 |
---|---|---|
committer | Alain Kalker | 2015-07-01 17:02:29 +0200 |
commit | 5866b97d219c16a8d0dfc4bab96e2994f4d0690b (patch) | |
tree | 090ac57ed3c057d4e96b3be3d2d0a514ea15d2c3 | |
download | aur-5866b97d219c16a8d0dfc4bab96e2994f4d0690b.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 67 | ||||
-rw-r--r-- | eic.profile | 1 |
3 files changed, 85 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1a497dff66ca --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = eic + pkgdesc = Extensible Interactive C, Improved + pkgver = 4.4.3 + pkgrel = 2 + url = http://sourceforge.net/projects/eic/ + arch = i686 + arch = x86_64 + license = custom:Artistic + options = !makeflags + options = staticlibs + source = http://downloads.sourceforge.net/eic/EiCsrc-4.4.3.tar.gz + source = eic.profile + md5sums = bf7f3873a4bff32cbcd86c246c90e359 + md5sums = 8639c10091c3576e803e8789b25a4819 + +pkgname = eic + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..27979fe59bc6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,67 @@ +# Maintainer: Alain Kalker <a.c.kalker@gmail.com> +_pkgname=EiC +pkgname=eic +pkgver=4.4.3 +pkgrel=2 +pkgdesc="Extensible Interactive C, Improved" +arch=('i686' 'x86_64') +url="http://sourceforge.net/projects/eic/" +license=('custom:Artistic') +[ $CARCH = "x86_64" ] && depends=('lib32-glibc') +options=(!makeflags staticlibs) # not parallel build safe +source=(http://downloads.sourceforge.net/$pkgname/EiCsrc-$pkgver.tar.gz + $pkgname.profile) +md5sums=('bf7f3873a4bff32cbcd86c246c90e359' + '8639c10091c3576e803e8789b25a4819') + +prepare() { + cd "$srcdir/$_pkgname-$pkgver" + + # install to a local directory until the build system gets fixed + sed -i -e '/^ *INSTALL_DIR = /s|\$(HOME)/local/bin$|'"$srcdir/$_pkgname-$pkgver/bin|" project.params + + # build multilib on x86_64 + if [ $CARCH = "x86_64" ]; then + echo "CC = gcc -m32" >> override.params + fi + + # getline function conflicts with the one in stdio.h + sed -i -e 's/getline/getsplicestripline/g' src/preproc.c +} + +build() { + cd "$srcdir/$_pkgname-$pkgver" + + # temporary install directory needed by build + mkdir bin + + # configure and build + config/makeconfig + make install +} + +package() { + cd "$srcdir/$_pkgname-$pkgver" + + # binaries + install -Dm755 bin/eic "$pkgdir"/usr/bin/eic + install -Dm755 bin/eim "$pkgdir"/usr/bin/eim + + # custom versions of system include files + install -dm755 "$pkgdir"/usr/lib/$pkgname/include + cp -r include/* "$pkgdir"/usr/lib/$pkgname/include + + # static libraries for embedding (needs option 'staticlibs') + install -Dm644 lib/libeic.a "$pkgdir"/usr/lib/libeic.a + install -Dm644 lib/libstdClib.a "$pkgdir"/usr/lib/libstdClib.a + + # man pages + install -Dm644 eic.man "$pkgdir"/usr/share/man/man1/eic.1 + install -Dm644 eim.man "$pkgdir"/usr/share/man/man1/eim.1 + + # license + install -Dm644 LICENCE "$pkgdir"/usr/share/licenses/$pkgname/LICENCE + + # profile + install -Dm755 "$srcdir"/$pkgname.profile "$pkgdir"/etc/profile.d/$pkgname.sh +} diff --git a/eic.profile b/eic.profile new file mode 100644 index 000000000000..4adcc7668abc --- /dev/null +++ b/eic.profile @@ -0,0 +1 @@ +export HOMEofEiC=/usr/lib/eic |