summaryrefslogtreecommitdiffstats
path: root/main/lua-curl/APKBUILD
blob: 33d2564f25a05db5bc9c7c999b1eeb5739d5465e (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lua-curl
pkgver=0.2
pkgrel=1
pkgdesc="Lua bindings to cURL library"
url="http://lua-curl.luaforge.net/"
arch="all"
license="MIT/X11"
depends=
makedepends="lua-dev curl-dev pkgconfig"
install=
subpackages=""
source="http://luaforge.net/frs/download.php/2634/lua-curl-0.2.tar.gz"

_builddir="$srcdir"/lua-curl-$pkgver
build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make
}

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

md5sums="c15599e1147f76261f03a00088946d9d  lua-curl-0.2.tar.gz"