diff options
Diffstat (limited to 'testing/prosody/APKBUILD')
-rw-r--r-- | testing/prosody/APKBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/testing/prosody/APKBUILD b/testing/prosody/APKBUILD new file mode 100644 index 0000000000..0f7b02bc75 --- /dev/null +++ b/testing/prosody/APKBUILD @@ -0,0 +1,43 @@ +# Contributor: Mika Havela <mika.havela@gmail.com> +# Maintainer: Mika Havela <mika.havela@gmail.com> +pkgname=prosody +pkgver=0.8.1 +pkgrel=0 +pkgdesc="Lua based Jabber/XMPP server" +url="http://prosody.im/" +arch="all" +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 + " + +build() { + cd "$srcdir/$pkgname-$pkgver" + ./configure --prefix=/usr \ + --sysconfdir=/etc/prosody \ + --with-lua=/usr/bin \ + --with-lua-lib=/usr/lib \ + --with-lua-include=/usr/include + + make || return 1 +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + 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="2be3e9deed0b96f109efc5707d7728ba prosody-0.8.1.tar.gz +f42039e5a342fe62cd7e491546338aaa prosody.cfg.lua +c0e647e872e30f71fa03faab189ae287 prosody.initd" |