summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d4e707627fc4425431f63b285633e0adc73ccf33 (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
37
38
39
40
41
42
43
44
45
# Contributor: Evaggelos Balaskas < evaggelos _AT_ balaskas _DOT_ gr >
# Maintainer:  Evaggelos Balaskas < evaggelos _AT_ balaskas _DOT_ gr >

_pkg=lua-sodium
pkgname=$_pkg-git
pkgver=git
pkgrel=1
pkgdesc="Lua bindings for libsodium"
url="https://github.com/morfoh/lua-sodium"

arch=('any')
license=('custom:LUA')

makedepends=('git' 'cmake' 'gcc')
depends=('lua' 'libsodium')

conflicts=(${_pkg})

source=(
        ${pkgname}::git+https://github.com/morfoh/${_pkg}.git
        LICENSE
)
sha256sums=('SKIP'
            'd721188f005e40b430f556e8bd83ff90591f77bd343073be2037f94705818c5c'
) 

pkgver() {
    date +%Y%m%d
}

build() {
    cd $srcdir/$pkgname
    LUA_VERSION=`lua -v | grep -o '5\.[0-9]'`
    cmake ./ -DINSTALL_CMOD=${pkgdir}/usr/lib/lua/${LUA_VERSION}
}

package() {
    cd $srcdir/$pkgname
    make install

    # Install License
    install -Dm644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4