aboutsummaryrefslogtreecommitdiffstats
path: root/main/sircbot/APKBUILD
blob: 109a1ac44a9143c06a68031bbe222090ce558b33 (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
45
46
47
48
49
50
51
52
53
54
55
56
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sircbot
pkgver=0.3
pkgrel=1
pkgdesc="Minimalistic IRC bot"
url="http://git.alpinelinux.org/cgit/sircbot/"
arch="all"
license="GPL-2"
pkgusers="sircbot"
pkggroups="sircbot"
depends=
makedepends="lua-dev"
install="$pkgname.pre-install"
subpackages="lua-sircbot:luamod"
source="http://dev.alpinelinux.org/archive/sircbot/sircbot-$pkgver.tar.bz2
	disconnect-fix.patch
	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="bad605639450640276341044f3d96190  sircbot-0.3.tar.bz2
4ba720163ca111f1cb7c9c369a370e05  disconnect-fix.patch
c89aa17a632d2338daefa1fd99b82f5d  sircbot.initd
8443ac189030c7b8beb8e579dc16ebc7  sircbot.confd"
sha256sums="0631a74260ebb6698a58ea68067387c29d533c0db9ba7147b834a77a8758202d  sircbot-0.3.tar.bz2
61da3159e48426f04f1fb4df31420a3faa72b52b6fddb342709406f89025a554  disconnect-fix.patch
f49ebfc6717fd34f946b8afbe7df50ddde59f0347b4300610cc6d6997710d1e7  sircbot.initd
b0bf9767150e486815aada1761b6fca7b7838df3045082ff8083167dbce613e6  sircbot.confd"
sha512sums="fe5a201fa92a25831e7107d8036f32e6b79d39814129f584e106484344e974037ddc016a5c3240a9c2a2540975b41356f80dba2507ee33750ce26ab751c201b8  sircbot-0.3.tar.bz2
ab0102d04b42826102ee705dc2b4a3202391619b4df7365bda8cc47715a0537a1656bcc32869628e70aa3467837dd7a7ca6aac6843c3fd046aba7832fed91ed6  disconnect-fix.patch
501bcf92aed2819dd902eab31470282b5951916f3d52bab6d8eb3a14e01690f10b5a9b52488bfdcf1aa5ada44840e918dbe93ba23d891389e5d8dbe4b9a40efb  sircbot.initd
315167ec664ce859908fcd230f6e0c604a0b02e56286156ba6ec76c32d6d514726acb493fe7a13b44d9255ec2e34fe4b2a6f02edf039b06e487cea6528d4d6a7  sircbot.confd"