summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1fed3d4f6558077ce76ed715e968dba97601b3bd (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
# Maintainer: Tomas Krizek <tomas.krizek@mailbox.org>

pkgname=('lua-curl' 'lua51-curl' 'lua52-curl')
_pkgname=Lua-cURL
pkgver=0.3.9
pkgrel=1
arch=('x86_64')
url='https://github.com/Lua-cURL/Lua-cURLv3'
license=('MIT')
depends=('curl')
makedepends=('lua' 'lua51' 'lua52')
source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/${_pkgname}/${_pkgname}v3/archive/v${pkgver}.tar.gz")
sha256sums=('c0e3f074b68b6e06d7f3c46ecfc742e810482128cb4b435c0caf1beb9ef4c066')

package_lua-curl() {
    pkgdesc="Lua 5.3 binding to libcurl"

    cd "${_pkgname}v3-${pkgver}"
    make clean
    make DESTDIR="${pkgdir}/" LUA_IMPL=lua install
}

package_lua51-curl() {
    pkgdesc="Lua 5.1 binding to libcurl"

    cd "${_pkgname}v3-${pkgver}"
    make clean
    make DESTDIR="${pkgdir}/" LUA_IMPL=lua51 install
}

package_lua52-curl() {
    pkgdesc="Lua 5.2 binding to libcurl"

    cd "${_pkgname}v3-${pkgver}"
    make clean
    make DESTDIR="${pkgdir}/" LUA_IMPL=lua52 install
}