PKGBUILDs/aur/netatalk/PKGBUILD

42 lines
1.3 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-04-09 02:00:15 +00:00
pkgver=3.1.1
pkgrel=1
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')
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
python2.patch)
md5sums=('1d9ed08871655776ec0e946f88749076'
'97bc0467dd8a866d9f0835d6440e3c19')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
patch -p0 < "$srcdir/python2.patch"
}
2011-01-27 02:03:22 +00:00
build() {
2014-04-09 02:00:15 +00:00
cd "$srcdir/$pkgname-$pkgver"
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
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
}