diff options
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 64 |
3 files changed, 47 insertions, 39 deletions
@@ -1,17 +1,15 @@ pkgbase = fexl-git - pkgdesc = A small embeddable interpreter for a programming language based on functions. - pkgver = 20131020 + pkgdesc = Simple but powerful functional scripting language + pkgver = 27.18.0.r12.83e9b05 pkgrel = 1 - url = http://fexl.com/code/ + epoch = 1 + url = https://fexl.com/ arch = i686 arch = x86_64 - license = GPL3 + license = MIT makedepends = git - makedepends = python2 - source = git://github.com/chkoreff/Fexl - source = http://kmkeen.com/tmp/ldsed - md5sums = SKIP - md5sums = dcdf078713e95432f2ab8be9fb501fe3 + depends = glibc + source = fexl::git+https://github.com/chkoreff/Fexl + b2sums = SKIP pkgname = fexl-git - diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..713f6f80aff8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/* +!/.gitignore +!/.SRCINFO +!/PKGBUILD @@ -1,39 +1,45 @@ -# Maintainer: Kyle Keen <keenerd@gmail.com> -pkgname=fexl-git -pkgver=20131020 -pkgrel=1 -pkgdesc="A small embeddable interpreter for a programming language based on functions." -url="http://fexl.com/code/" -arch=('i686' 'x86_64') -license=("GPL3") -#depends=() -makedepends=('git' 'python2') -source=('git://github.com/chkoreff/Fexl' - 'http://kmkeen.com/tmp/ldsed') -md5sums=('SKIP' - 'dcdf078713e95432f2ab8be9fb501fe3') +# Contributor: éclairevoyant +# Contributor: Kyle Keen <keenerd at gmail dot com> -_gitname="Fexl" +_pkgname=fexl +pkgname="$_pkgname-git" +pkgver=27.18.0.r12.83e9b05 +pkgrel=1 +epoch=1 +pkgdesc="Simple but powerful functional scripting language" +arch=(i686 x86_64) +url="https://fexl.com/" +license=(MIT) +depends=(glibc) +makedepends=(git) +source=("$_pkgname::git+https://github.com/chkoreff/Fexl") +b2sums=('SKIP') + +prepare() { + cd $_pkgname/src + # test scripts and reference outputs use hardcoded relative paths + # strangely, a1 already has the desired path, so we only fix the other tests. + sed -i 's|\.\./bin/||g;s|test/|src/test/|g;s|out/|src/out/|g' \ + test/{check,show,stream}.fxl out/{a7,b14,missing,lib} +} pkgver() { - cd "$_gitname" - git show -s --format="%ci" HEAD | sed -e 's/-//g' -e 's/ .*//' + git -C $_pkgname describe --long --tags | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g' } - build() { - cd "$srcdir/$_gitname" - # everything about the build script continues to be broken - sed -i 's/$options$list_obj/& -ldl/g' build - sed -i 's/^.*chown/echo #&/g' build + cd $_pkgname/src + ./build } -package() { - cd "$srcdir/$_gitname" - ./build install in "$pkgdir/usr" - - # fix the broken library links - python2 "$srcdir/ldsed" "$pkgdir" "$pkgdir/usr/bin/fexl" +check() { + cd $_pkgname + # b17 fails, not sure why + PATH="./bin:$PATH" fexl src/test/check.fxl } - +package() { + cd $_pkgname + install -Dm755 bin/$_pkgname -t "$pkgdir/usr/bin/" + install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$_pkgname/" +} |