summaryrefslogtreecommitdiff
path: root/social/netatalk/PKGBUILD
blob: 0c04bcbd4badb9718f62f3c4fadcf65009646158 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Maintainer (Arch): SJ_UnderWater
# Maintainer: fauno@parabola.nu
# Based on netatalk package :
# Maintainer (Arch): Dominik Dingel <mail at wodar dot de>
# Contributor (Arch): William Udovich <nerdzrule7 at earthlink dot net>
# Contributor (Arch): Farhan Yousaf <farhany at xaviya dot com>

pkgname=netatalk
pkgver=3.0.1
pkgrel=3
pkgdesc='Open Source AFP fileserver'
arch=('i686' 'x86_64' 'mips64el')
url='http://netatalk.sourceforge.net'
license=('GPL')
depends=('avahi>=0.6' 'libldap' 'libgcrypt>=1.2.3' 'libevent')
backup=('etc/afp.conf')
options=('!libtool')
install=$pkgname.install
changelog=$pkgname.changelog
source=(http://iweb.dl.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2)
md5sums=('b4f5c932b2ca99f5292bd6b6d69b3ebc')

build() {
  cd $pkgname-$pkgver

# TODO what does this fix?
  msg2 'Fixing...'
  sed -i 's/x"linux/x"generic/' macros/netatalk.m4
  sed -i 's:/lib:/usr/lib:' distrib/initscripts/Makefile.{am,in}

  autoreconf

  CFLAGS="-Wno-unused-result" \
  ./configure --prefix=/usr \
              --disable-static \
              --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
  make 
}
package() {
  cd $pkgname-$pkgver

  make DESTDIR="$pkgdir" install
}