From b3a2590a3b92e20780c0903bf175ce7166142925 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Wed, 3 Jul 2013 15:34:49 +0200 Subject: add pkbuild for selene unicode --- slnunicode-git/LICENSE | 19 +++++++++++++++++++ slnunicode-git/PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 slnunicode-git/LICENSE create mode 100644 slnunicode-git/PKGBUILD diff --git a/slnunicode-git/LICENSE b/slnunicode-git/LICENSE new file mode 100644 index 0000000..17a059d --- /dev/null +++ b/slnunicode-git/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2005-2011 Malete Partner, Berlin, partner@malete.org + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. 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 +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" +} -- cgit v1.2.3