From e5aaea03d16dfd89b645963ae5b05e3661cbd37a Mon Sep 17 00:00:00 2001 From: fbt Date: Sat, 16 Jan 2016 19:48:44 +0300 Subject: [PATCH] init. Stolen from AUR --- PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..88f82a4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# vim: ft=sh + +pkgname=ircd-ratbox +pkgver=3.0.9 +pkgrel=1 +pkgdesc='An advanced, stable and fast ircd' +url='http://www.ratbox.org' +license=( 'GPL' ) +depends=( 'openssl' 'sqlite' ) +arch=( 'i686' 'x86_64' 'arm' 'armv6h' 'armv7h' ) +backup=( "etc/$pkgname/ircd.motd" ) +install=$pkgname.install +options='!makeflags' + +source=( "http://www.ratbox.org/download/$pkgname-$pkgver.tar.bz2" ) + +build() { + cd "$pkgname-$pkgver" + ./configure --prefix=/usr/share/"$pkgname" \ + --with-confdir=/etc/"$pkgname" \ + --with-logdir=/var/log/"$pkgname" \ + --bindir=/usr/bin + + make +} + +package() { + mkdir -m755 "$pkgdir/etc" + + cd "$pkgname-$pkgver" + make DESTDIR="$pkgdir" install +} + +sha1sums=( '3f52d63465bf19da29e49f2e930f9815e009fbce' )