# Contributor: Leonardo Arena # Maintainer: Natanael Copa pkgname=ngircd pkgver=22 pkgrel=1 pkgdesc="Next Generation IRC Daemon" url="http://ngircd.barton.de/" arch="all" license="GPL2+" depends="" makedepends="openssl-dev zlib-dev linux-pam-dev" install="$pkgname.pre-install" source="http://ngircd.barton.de/pub/ngircd/ngircd-$pkgver.tar.xz $pkgname.initd " _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc/ngircd \ --mandir=/usr/share/man \ --without-ident \ --with-openssl \ --with-pam \ --enable-ipv6 \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 install -Dm755 ../$pkgname.initd "$pkgdir"/etc/init.d/$pkgname } md5sums="39e5345305311702b1453ceee728bdbc ngircd-22.tar.xz 51c3679a7c1f2f5522031fa856e34734 ngircd.initd" sha256sums="a4c13e6a5f991d248412d550b4617484d7f977c786a0323f0301b4d4707a639e ngircd-22.tar.xz 890d0dc433a8d7f082c35ba806bac53f19d2d4352fcb7127cc28741abcbd6a75 ngircd.initd" sha512sums="23932765e05cbdaae92ad14aed26ff22a0cdf487ef591d505c361c5ea61328c72e34196beca4dbeb3d8ae9b794c54d149e1a19553652fd4f8fb0fd8a639e90b9 ngircd-22.tar.xz 50339507917c956a38451394a8a5996337ff29948944ff6aa40ed39f6dd3d6bfdfb864d60a24199c0a86a01e18a71f213efa6cfb2857a320f31b9fcfb92c6ac1 ngircd.initd"