summaryrefslogtreecommitdiffstats
path: root/main/pllua/APKBUILD
blob: ca0d1cd1b532655e46eabb270091210c744179ae (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
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=pllua
pkgver=0.3.2
pkgrel=0
pkgdesc="Procedural language for PostgreSQL using Lua"
url="http://pgfoundry.org/projects/pllua"
arch="all"
license="GPL"
depends="postgresql"
makedepends="postgresql-dev lua-dev"
install=
subpackages=""
source="
	http://pgfoundry.org/frs/download.php/2401/pllua-$pkgver.tar.gz 
	pllua-include.patch"

_builddir="$srcdir"/pllua-$pkgver
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

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

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
}

md5sums="e91cbbaa0bbaca9bd4478255a98a264e  pllua-0.3.2.tar.gz
a0b6b84f0fb7776c70ed1052ae4f2c8e  pllua-include.patch"