aboutsummaryrefslogtreecommitdiffstats
path: root/testing/prosody/APKBUILD
blob: 8ab75097c6fa2e233264cbfbe75dd241caf41972 (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
40
41
42
43
44
# Contributor: Mika Havela <mika.havela@gmail.com>
# Maintainer: Mika Havela <mika.havela@gmail.com>
pkgname=prosody
pkgver=0.4.2
pkgrel=4
pkgdesc="Lua based Jabber/XMPP server"
url="http://prosody.im/"
arch="x86 x86_64"
license="MIT"
depends="lua-socket lua-expat"
makedepends="lua-dev libidn-dev openssl-dev"
install="prosody.pre-install prosody.post-install"
subpackages=""
source="http://prosody.im/downloads/source/$pkgname-$pkgver.tar.gz
	$pkgname.cfg.lua
	$pkgname.initd
	Makefile-0.4.2.patch
	"

build() {
	cd "$srcdir/$pkgname-$pkgver"

	patch Makefile "$startdir/Makefile-0.4.2.patch" || return 1

	./configure --prefix=/usr \
		--sysconfdir=/etc/prosody \
		--with-lua=/usr/bin \
		--with-lua-lib=/usr/lib \
		--with-lua-include=/usr/include
	
	make || return 1
	make DESTDIR="$pkgdir" install

	install -d "$pkgdir/var/log/prosody" || return 1
	install -d "$pkgdir/var/run/prosody" || return 1
	install -D -m755 "$srcdir"/"$pkgname".initd "$pkgdir"/etc/init.d/"$pkgname"

	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

md5sums="2669478311b3a67522669acdf03cf85c  prosody-0.4.2.tar.gz
f42039e5a342fe62cd7e491546338aaa  prosody.cfg.lua
c0e647e872e30f71fa03faab189ae287  prosody.initd
684d033dac42399a245c061c9a374e1b  Makefile-0.4.2.patch"