blob: d3a3228cb124c9780397f32936bf5597aabf5c01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Maintainer: Philipp Gesang <phg42.2a@gmail.com>
pkgname=slnunicode-git
_gitname=slnunicode
pkgver=20150102.ga53f991
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")
sha512sums=("SKIP"
"7000d8ae0a325788128efb86b24fb553633be8b1c837d1b6f173734bca68ad34065be93129632a1a1aec55956c7aab9c9fb0d7802b0038b47696e17a2960c1c2")
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"
}
|