PKGBUILDs/aur/netatalk/PKGBUILD

42 lines
1.4 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
2012-10-13 22:31:26 +00:00
pkgver=3.0.1
2012-12-03 23:27:45 +00:00
pkgrel=4
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')
2012-07-24 03:24:40 +00:00
depends=('avahi>=0.6' 'libldap' 'libgcrypt>=1.2.3' 'libevent')
2012-04-15 16:58:08 +00:00
replaces=('netatalk-git' 'netatalk2')
2012-07-24 03:24:40 +00:00
backup=('etc/afp.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)
md5sums=('b4f5c932b2ca99f5292bd6b6d69b3ebc')
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...'
2012-07-24 03:24:40 +00:00
sed -i 's/x"linux/x"generic/' macros/netatalk.m4
2012-10-13 22:31:26 +00:00
sed -i 's:/lib:/usr/lib:' distrib/initscripts/Makefile.{am,in}
2012-12-03 23:27:45 +00:00
sed -i 's:model=%s:model:' etc/afpd/afp_mdns.c
2012-07-24 03:24:40 +00:00
autoreconf &>/dev/null
2012-04-15 16:58:08 +00:00
msg2 'Configuring...'
2012-10-13 22:31:26 +00:00
CFLAGS="-Wno-unused-result" ./configure --prefix=/usr --localstatedir=/var/state --sysconfdir=/etc --with-init-style=systemd \
--with-cracklib --with-cnid-cdb-backend --enable-pgp-uam --without-libevent-header --without-libevent-lib
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
}