1 # Maintainer: Kristaps Esterlins <kristaps.esterlins@gmail.com>
6 pkgdesc="A (very) simple Internet Relay Chat (IRC) server"
8 url="https://github.com/jrosdahl/miniircd"
12 source=('miniircd.rc' 'miniircd.conf')
13 md5sums=('63e61cdea1cc9aaa2b10838cb3dd3e66'
14 '21facaa78eeba57fbe0effd97a9d5a9a')
16 _gitroot=git://github.com/jrosdahl/miniircd.git
21 msg "Connecting to GIT server...."
23 if [[ -d "$_gitname" ]]; then
24 cd "$_gitname" && git pull origin
25 msg "The local files are updated."
27 git clone "$_gitroot" "$_gitname"
30 msg "GIT checkout done or server timeout"
31 msg "Starting build..."
33 rm -rf "$srcdir/$_gitname-build"
34 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35 cd "$srcdir/$_gitname-build"
37 install -d -m 755 $pkgdir/usr/{bin,share/doc/$pkgname}
38 install -d -m 755 $pkgdir/etc/{conf.d,rc.d}
42 cd "$srcdir/$_gitname-build"
44 # Compatibility fix, otherwise miniircd
45 # will not start if python v3 is present
46 sed -i 's|/usr/bin/env python|/usr/bin/env python2|' miniircd
48 install -m 755 miniircd $pkgdir/usr/bin
49 install -m 755 $srcdir/miniircd.rc $pkgdir/etc/rc.d/miniircd
50 install -m 644 $srcdir/miniircd.conf $pkgdir/etc/conf.d/miniircd
52 install -m 644 README.md $pkgdir/usr/share/doc/$pkgname/README
55 # vim:set ts=2 sw=2 et: