diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-09-17 08:53:53 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-09-17 08:53:53 +0000 |
commit | 11186610007134faa0cf463ab70d54fde7acf74a (patch) | |
tree | fc38aa14017c80d2dfcdeb8b0a6d70a923c77f6c /main/sircbot/APKBUILD | |
parent | 0a665610233b1a135f8a058f897c61eedbd962f9 (diff) | |
download | aports-11186610007134faa0cf463ab70d54fde7acf74a.tar.bz2 aports-11186610007134faa0cf463ab70d54fde7acf74a.tar.xz |
main/sircbot: moved from testing
Diffstat (limited to 'main/sircbot/APKBUILD')
-rw-r--r-- | main/sircbot/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/main/sircbot/APKBUILD b/main/sircbot/APKBUILD new file mode 100644 index 000000000..ba6a19d59 --- /dev/null +++ b/main/sircbot/APKBUILD @@ -0,0 +1,45 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=sircbot +pkgver=0.2 +pkgrel=1 +pkgdesc="Minimalistic IRC bot" +url="http://git.alpinelinux.org/cgit/sircbot/" +license="GPL-2" +pkgusers="sircbot" +pkggroups="sircbot" +depends= +makedepends="lua-dev" +install="$pkgname.pre-install" +subpackages="lua-sircbot:luamod" +source="http://git.alpinelinux.org/cgit/sircbot/snapshot/sircbot-$pkgver.tar.bz2 + sircbot.initd + sircbot.confd + " + +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + cd "$_builddir" +} + +build() { + cd "$_builddir" + make || return 1 +} + +package() { + cd "$_builddir" + make install DESTDIR="$pkgdir" prefix=/usr + install -o sircbot -g sircbot -d "$pkgdir"/var/run/sircbot + install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname + install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname +} + +luamod() { + pkgdesc="Luamodule for sirbot client" + mkdir -p "$subpkgdir"/usr/ + mv "$pkgdir"/usr/lib "$subpkgdir"/usr/ +} + +md5sums="a9d16db48c97ebfa30e1c84f37e70838 sircbot-0.2.tar.bz2 +494717b7824e271093511a48955e4a14 sircbot.initd +8443ac189030c7b8beb8e579dc16ebc7 sircbot.confd" |