PKGBUILDs/aur/netatalk/PKGBUILD

43 lines
1.5 KiB
Bash
Raw Normal View History

2012-04-15 16:58:08 +00:00
# Maintainer: SJ_UnderWater
# Based on netatalk package :
# Maintainer: Dominik Dingel <mail at wodar dot de>
2011-01-27 02:03:22 +00:00
# Contributor: William Udovich <nerdzrule7 at earthlink dot net>
# Contributor: Farhan Yousaf <farhany at xaviya dot com>
2012-04-23 01:03:37 +00:00
pkgname=netatalk
2013-06-04 12:55:20 +00:00
pkgver=3.0.4
pkgrel=2
2012-07-24 03:24:40 +00:00
pkgdesc='A kernel-level implementation of AFP services'
2011-01-27 02:03:22 +00:00
arch=('i686' 'x86_64')
2012-04-15 16:58:08 +00:00
url='http://netatalk.sourceforge.net'
license=('GPL')
2013-06-04 12:55:20 +00:00
depends=('avahi>=0.6' 'libldap' 'libgcrypt>=1.2.3' 'libevent' 'python' 'dbus-glib')
2012-04-15 16:58:08 +00:00
replaces=('netatalk-git' 'netatalk2')
2013-02-02 00:03:21 +00:00
backup=('etc/afp.conf'
'etc/extmap.conf')
2012-04-15 16:58:08 +00:00
options=('!libtool')
install=$pkgname.install
changelog=$pkgname.changelog
2012-10-13 22:31:26 +00:00
source=(http://iweb.dl.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2)
2013-06-04 12:55:20 +00:00
md5sums=('f455505884a6aea307640d46a6577fd1')
2011-01-27 02:03:22 +00:00
build() {
2012-07-24 03:24:40 +00:00
cd $pkgname-$pkgver
2012-06-26 20:51:03 +00:00
msg2 'Fixing...'
2013-06-04 12:55:20 +00:00
sed -i -e 's:AX_CHECK_DOCBOOK:[AX_CHECK_DOCBOOK]:' -e 's:"/lib/systemd:"/usr/lib/systemd:' -e 's/x"linux/x"generic/' macros/netatalk.m4
2013-01-12 00:24:04 +00:00
sed -i 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' {configure.ac,libevent/configure.in}
2013-02-02 00:03:21 +00:00
cp /usr/share/automake*/missing .
2013-01-12 00:24:04 +00:00
autoreconf -i >/dev/null
2012-04-15 16:58:08 +00:00
msg2 'Configuring...'
2013-06-04 12:55:20 +00:00
CFLAGS="-Wno-unused-result -O2" ./configure --prefix=/usr --localstatedir=/var/state --sysconfdir=/etc --sbindir=/usr/bin --with-init-style=systemd \
2013-02-02 00:03:21 +00:00
--with-cracklib --with-cnid-cdb-backend --enable-pgp-uam --with-libevent=no
2012-10-13 22:31:26 +00:00
sed -i -e s/-Ino// -e s/-Lno// etc/netatalk/Makefile
2012-04-15 16:58:08 +00:00
msg2 'Making...'
make >/dev/null
}
2012-04-23 01:03:37 +00:00
package() {
2012-07-24 03:24:40 +00:00
cd $pkgname-$pkgver
2012-04-15 16:58:08 +00:00
msg2 'Building...'
make DESTDIR="$pkgdir" install >/dev/null
2012-04-23 01:03:37 +00:00
}