ircd-ratbox/PKGBUILD

47 lines
1.2 KiB
Bash
Raw Normal View History

# Author: Kevin MacMartin <prurigro@gmail.com>
# Imported for use on https://code.fleshless.org
2016-01-16 16:48:44 +00:00
pkgname=ircd-ratbox
2016-05-24 09:10:24 +00:00
pkgver=3.0.10
pkgrel=3
2016-01-16 16:48:44 +00:00
pkgdesc='An advanced, stable and fast ircd'
url='http://www.ratbox.org'
license=('GPL')
depends=('openssl' 'sqlite' 'libtool')
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
backup=("etc/$pkgname/ircd.motd")
install="$pkgname.install"
2016-01-16 16:48:44 +00:00
source=(
"http://www.ratbox.org/download/$pkgname-$pkgver.tar.bz2"
"$pkgname.service"
"$pkgname.conf"
)
2016-01-16 16:48:44 +00:00
build() {
cd "$pkgname-$pkgver"
./configure --prefix="/usr/share/$pkgname" \
--with-confdir="/etc/$pkgname" \
--with-logdir="/var/log/$pkgname" \
2016-01-16 16:48:44 +00:00
--bindir=/usr/bin
make
cd contrib
make
2016-01-16 16:48:44 +00:00
}
package() {
install -d "$pkgdir/etc/$pkgname"
install -Dm644 $pkgname.service "$pkgdir/usr/lib/systemd/system/$pkgname.service"
install -Dm644 $pkgname.conf "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
cd $pkgname-$pkgver
2016-01-16 16:48:44 +00:00
make DESTDIR="$pkgdir" install
install -d "$pkgdir/usr/share/$pkgname/modules/contrib/"
cp contrib/.libs/*.so "$pkgdir/usr/share/$pkgname/modules/contrib/"
2016-01-16 16:48:44 +00:00
}
sha1sums=('fa1645495c765cf921726b65172ff5eceeea008a'
'84fb85e7c8b858e8e11be11e8abe60e3cada3c80'
'3dd5270ced5243adf4dde43ef11c3a0a68001240')