diff options
author | Dan Beste | 2017-10-04 11:11:19 -0500 |
---|---|---|
committer | Dan Beste | 2017-10-04 11:50:47 -0500 |
commit | 3e23e0b2befb0264d24e3ab814f6d62eba431468 (patch) | |
tree | 6694fe32935a97aa46ee3d76f269941bcfa9da49 | |
parent | c6545e83aacde8d796c6a555741f9d2345d52be6 (diff) | |
download | aur-3e23e0b2befb0264d24e3ab814f6d62eba431468.tar.gz |
r963.2880c8a-1
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | .gitignore | 7 | ||||
-rw-r--r-- | PKGBUILD | 62 |
3 files changed, 52 insertions, 31 deletions
@@ -1,16 +1,14 @@ -# Generated by mksrcinfo v8 -# Thu May 19 12:19:35 UTC 2016 pkgbase = lfe-git pkgdesc = Lisp Flavoured Erlang - pkgver = 20160518 - pkgrel = 3 + pkgver = r963.2880c8a + pkgrel = 1 url = http://lfe.io/ - arch = i686 arch = x86_64 license = Apache_v2 - depends = erlang - source = lfe-git::git+https://github.com/rvirding/lfe/ - md5sums = SKIP + depends = erlang-nox + conflicts = lfe + source = git+https://github.com/rvirding/lfe.git#branch=develop + sha256sums = SKIP pkgname = lfe-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..bc9028b62ecb --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +# Blacklist: +* + +# Whitelist: +!.SRCINFO +!.gitignore +!PKGBUILD @@ -1,34 +1,50 @@ -# Maintainer: anekos <anekos@snca.net> -pkgname=lfe-git -pkgver=20160518 -pkgrel=3 +# Maintainer: Dan Beste <dan.ray.beste@gmail.com> +# Contributor: anekos <anekos@snca.net> + +pkgname='lfe-git' +_pkgname='lfe' +pkgver=r963.2880c8a +pkgrel=1 pkgdesc="Lisp Flavoured Erlang" -url="http://lfe.io/" -arch=('i686' 'x86_64') +url='http://lfe.io/' +arch=('x86_64') license=('Apache_v2') -depends=('erlang') -source=("$pkgname::git+https://github.com/rvirding/lfe/") -md5sums=('SKIP') -makedep=('pandoc') +depends=('erlang-nox') +conflicts=("${_pkgname}") +source=('git+https://github.com/rvirding/lfe.git#branch=develop') +sha256sums=('SKIP') -package () { - cd $srcdir/$pkgname +pkgver() { + cd "${_pkgname}" - mkdir -p "$pkgdir/opt/lfe" - cp -r * "$pkgdir/opt/lfe/" + printf "r%s.%s" \ + "$(git rev-list --count HEAD)" \ + "$(git rev-parse --short HEAD)" +} - cd "$pkgdir/opt/lfe/" +build() { + cd "${_pkgname}" - make compile - make install-man MANINSTDIR="$pkgdir/usr/share/man" + make +} - install -d -m755 "$pkgdir/usr/bin" +package () { + cd "${_pkgname}" - ln -sf /opt/lfe/bin/lfe "$pkgdir/usr/bin/" - ln -sf /opt/lfe/bin/lfec "$pkgdir/usr/bin/" - ln -sf /opt/lfe/bin/lfedoc "$pkgdir/usr/bin/" - ln -sf /opt/lfe/bin/lfescript "$pkgdir/usr/bin/" + make PREFIX="${pkgdir}/usr" install + + cd "${pkgdir}/usr/bin" + + # Properly symlink lfe binaries: + for link in *; do + ln -sfv "../lib/lfe/bin/${link}" "${link}" + done + + # Remove useless files / folders: + rm -rv "${pkgdir}/usr/share/man/cat1" + rm -rv "${pkgdir}/usr/share/man/cat3" + rm -rv "${pkgdir}/usr/share/man/cat7" + rm -v "${pkgdir}/usr/share/man/index.db" } # vim:set ts=2 sw=2 et: - |