PKGBUILDs/aur/netatalk/PKGBUILD

46 lines
1.4 KiB
Bash
Raw Normal View History

2014-04-09 02:00:15 +00:00
# Maintainer: Denis Yantarev <denis dot yantarev at gmail dot com>
# Contributor: SJ_UnderWater
# Contributor: 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
2014-07-23 11:41:47 +00:00
pkgver=3.1.3
2014-04-09 02:00:15 +00:00
pkgrel=1
2012-07-24 03:24:40 +00:00
pkgdesc='A kernel-level implementation of AFP services'
2014-07-23 11:41:47 +00:00
arch=('i686' 'x86_64' 'armv6h')
2012-04-15 16:58:08 +00:00
url='http://netatalk.sourceforge.net'
license=('GPL')
2014-04-09 02:00:15 +00:00
depends=('avahi>=0.6' 'libldap' 'libgcrypt>=1.2.3' 'libevent' 'python2' 'dbus-glib' 'python2-dbus')
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
install=$pkgname.install
2014-04-09 02:00:15 +00:00
source=(http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2
2014-06-21 02:55:50 +00:00
avahi-client.patch
2014-04-09 02:00:15 +00:00
python2.patch)
2014-07-23 11:41:47 +00:00
md5sums=('ac65dafa20d502a10438fec7e1116b1e'
2014-06-21 02:55:50 +00:00
'00379aacb88dcac8c1e0513da1a5f24c'
2014-04-09 02:00:15 +00:00
'97bc0467dd8a866d9f0835d6440e3c19')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
patch -p0 < "$srcdir/python2.patch"
2014-06-21 02:55:50 +00:00
patch -p0 < "$srcdir/avahi-client.patch"
2014-04-09 02:00:15 +00:00
}
2011-01-27 02:03:22 +00:00
build() {
2014-04-09 02:00:15 +00:00
cd "$srcdir/$pkgname-$pkgver"
2014-07-23 11:41:47 +00:00
autoreconf -fi
2014-04-09 02:00:15 +00:00
CFLAGS="-Wno-unused-result -O2" \
./configure --prefix=/usr --localstatedir=/var/state --sysconfdir=/etc \
2014-06-21 02:55:50 +00:00
--sbindir=/usr/bin --enable-silent-rules --with-init-style=systemd \
2014-07-23 11:41:47 +00:00
--with-cracklib --with-cnid-cdb-backend --enable-pgp-uam --with-libevent=no
2014-04-09 02:00:15 +00:00
make
2012-04-15 16:58:08 +00:00
}
2014-04-09 02:00:15 +00:00
2012-04-23 01:03:37 +00:00
package() {
2014-04-09 02:00:15 +00:00
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
2012-04-23 01:03:37 +00:00
}