PKGBUILDs/community/ircservices/PKGBUILD
2009-10-09 21:15:33 -05:00

56 lines
1.9 KiB
Bash

# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=ircservices
pkgver=5.1.16
pkgrel=1
pkgdesc="Services for IRC (NickServ, ChanServ, MemoServ)"
arch=(i686 x86_64)
url="http://www.ircservices.za.net/"
license=('GPL')
depends=(glibc)
makedepends=(patch)
conflicts=()
replaces=()
backup=()
options=('!makeflags' 'emptydirs')
install=ircservices.install
source=(http://www.ircservices.za.net/download/ircservices-$pkgver.tar.gz \
path-patch.patch \
ircservices)
md5sums=('a20be096e427d9c904b99890a14f8349'
'7e4bbf6fb398323afc8e85656ec82c13'
'663bd12a90f292cb6ea6f6eab83a6567')
build() {
cd $startdir/src/$pkgname-$pkgver
patch -Np0 <../path-patch.patch
./configure -prefix /usr
# make || return 1
sed -i "s#DATDEST=/usr/lib/ircservices#DATDEST=$startdir/pkg/usr/lib/ircservices#" ./Makefile.inc
sed -i "s#BINDEST=/usr/sbin#BINDEST=$startdir/pkg/usr/sbin#" ./Makefile.inc
install -d -m 0755 $startdir/pkg/usr/sbin && \
install -d -m 0755 $startdir/pkg/usr/lib && \
install -d -m 0755 $startdir/pkg/etc/ircd && \
make DESTDIR=$startdir/pkg install || return 1
install -D -m 0755 $startdir/src/ircservices $startdir/pkg/etc/rc.d/ircservices && \
cd $startdir/pkg && chmod -R ugo+r * && chmod 0755 ./usr/sbin/ircservices && \
find -type d -exec chmod 0755 {} \; && \
install -d -m 0755 $startdir/pkg/var/lib/ircd && \
cd ./var/lib/ircd && \
ln -s /usr/lib/ircservices/modules modules && \
ln -s /usr/lib/ircservices/languages languages && \
ln -s /usr/lib/ircservices/helpfiles helpfiles && \
ln -s /etc/ircd/ircservices.conf ircservices.conf && \
ln -s /etc/ircd/modules.conf modules.conf || return 1
mkdir -p $startdir/pkg/var/log/ircd && \
mkdir -p $startdir/pkg/var/run/ircd && \
mv $pkgdir/usr/lib/ircservices/*.conf $pkgdir/etc/ircd/
}