aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-imlib2/APKBUILD
blob: aafb77c1ce529d694f63160356e238587276dc56 (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>
pkgname=lua-imlib2
pkgver=0.1
pkgrel=2
pkgdesc="A LUA binding to the Imlib2 image manipulation library"
url="http://asbradbury.org/projects/lua-imlib2/"
arch="all"
license="MIT"
depends=
makedepends="lua-dev imlib2-dev"
install=
source="http://luaforge.net/frs/download.php/3042/lua-imlib2-$pkgver.tar.gz"


_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	# apply patches here
}

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	install -D limlib2.so "$pkgdir"/usr/lib/lua/5.1/limlib2.so
	install -D imlib2.lua "$pkgdir"/usr/share/lua/5.1/imlib2.lua
}

sha512sums="0b902e3e1f6a94f94dd735549456aff7713a76f758162a0bca9aa01cab1cf8ddd4b159c10623bfb7d42d5d85e53dd474b523fd3fdc914e31ffe49c85f28141d6  lua-imlib2-0.1.tar.gz"