aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-curl/APKBUILD
blob: e7f0f2377c2884f9603bde960244faca40860092 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_luaver=5.1
pkgname=lua-curl
pkgver=0.2.3
pkgrel=0
pkgdesc="Lua bindings to cURL library"
url="http://lua-curl.luaforge.net/"
arch="all"
license="MIT/X11"
depends=
makedepends="lua-dev curl-dev cmake"
install=
subpackages=""
source="lua-curl-$pkgver.tar.gz::https://github.com/msva/lua-curl/archive/$pkgver.tar.gz"

_builddir="$srcdir"/lua-curl-$pkgver
build() {
	cd "$_builddir"
	cmake . \
		-DCMAKE_BUILD_TYPE=Release \
		|| return 1
	make
}

package() {
	cd "$_builddir"
	make install DESTDIR="$pkgdir"
	rm -f "$pkgdir"/usr/lib/lua/$_luaver/cURL.la
}

md5sums="5ce07f1b795b6a2d4745db93a84902ff  lua-curl-0.2.3.tar.gz"
sha256sums="1bb569698ac82f7147a7c7e4bd0e635a249e09d5c3385e613c3bb5db3350e773  lua-curl-0.2.3.tar.gz"
sha512sums="9f8c775359cb527c60c0491848b9251adca635e05d3c7a74d38e34cac64abcd534afb670d97c57c23ba11aada19aa6f9eb017fb55308ee8b59ed8ce861c490e9  lua-curl-0.2.3.tar.gz"