diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2013-07-03 15:34:49 +0200 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2013-07-03 15:34:49 +0200 |
commit | b3a2590a3b92e20780c0903bf175ce7166142925 (patch) | |
tree | 5aa962cab586bc9b1d40c8f896d9762ca41387ec /slnunicode-git/PKGBUILD | |
parent | b21549ab562e9f40deb0b181e41d1b97bc7a3b72 (diff) | |
download | arch-packages-b3a2590a3b92e20780c0903bf175ce7166142925.tar.gz |
add pkbuild for selene unicode
Diffstat (limited to 'slnunicode-git/PKGBUILD')
-rw-r--r-- | slnunicode-git/PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/slnunicode-git/PKGBUILD b/slnunicode-git/PKGBUILD new file mode 100644 index 0000000..8a3d719 --- /dev/null +++ b/slnunicode-git/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Philipp Gesang <phg42.2a@gmail.com> +pkgname=slnunicode-git +_gitname=slnunicode +pkgver=20130703.gf80f1bc +pkgrel=1 +pkgdesc="Unicode-aware replacement for the Lua string library from the Selene database." +arch=("any") +url="http://luaforge.net/projects/sln/" +license=("custom") +depends=("lua") +source=("slnunicode::git+https://github.com/phi-gamma/${_gitname}" + "LICENSE") +md5sums=('SKIP' + '18ad94b36b198743a0142b3ada1411d7') +options=(!strip) +_gitbranch="master" + +pkgver() { + cd $_gitname + # Package version is the date of the last commit + the SHA tag + git log -1 --format="%cd.g%h" --date=short | sed 's/-//g' +} + +build () { + cd $_gitname + gcc -O2 -fPIC -I/usr/include -c slnunico.c -o ./slnunico.o + gcc -O2 -fPIC -I/usr/include -c slnudata.c -o ./slnudata.o + gcc -shared -o unicode.so -L/usr/lib slnunico.o ./slnudata.o +} + +package () { + cd $_gitname + install -Dm0755 "${srcdir}/${_gitname}/unicode.so" "${pkgdir}/usr/lib/lua/5.2/unicode.so" + install -Dm0644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} |