aboutsummaryrefslogtreecommitdiffstats
path: root/main/pllua/APKBUILD
blob: ed16427496a680d25d55294dbe29235fd0a0aa63 (plain) (blame)
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
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=pllua
pkgver=0.3.1
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 ccache"
install=
subpackages=""
source="http://pgfoundry.org/frs/download.php/1722/$pkgname-$pkgver.tar.gz
	pllua-01-0.3.1-include.patch"

# append extra dependencies to -dev subpackage
# remove if not used.
# depends_dev="somepackage-dev"

build() {
	cd "$srcdir"/$pkgname-$pkgver
	for i in "$srcdir"/*.patch; do
       		msg "Applying ${i}"
                patch -p1 -i $i || return 1
        done
              
	make || return 1
	make DESTDIR="$pkgdir" install

	# remove the 2 lines below (and this) if there is no init.d script
	# install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	# install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}

md5sums="e57385bdf2d533ac73cd02401795cea8  pllua-0.3.1.tar.gz
a47387e64b7dba8d58237c7dad0e2d61  pllua-01-0.3.1-include.patch"