summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3e2bb2aed6ddae21099abc513d555bdcc21ffa2f (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Maintainer: Denis Yantarev <denis dot yantarev at gmail dot com>
# Contributor: SJ_UnderWater
# Contributor: Dominik Dingel <mail at wodar dot de>
# Contributor: William Udovich <nerdzrule7 at earthlink dot net>
# Contributor: Farhan Yousaf <farhany at xaviya dot com>

pkgname=netatalk
pkgver=4.0.4
pkgrel=1
pkgdesc='Open-source implementation of the Apple Filing Protocol'
url='https://netatalk.io'
license=('GPL-2.0-or-later')

source=(https://github.com/Netatalk/${pkgname}/releases/download/${pkgname}-${pkgver//./-}/${pkgname}-${pkgver}.tar.xz)
md5sums=('00890865e735a27602d4d04816b3a017')

arch=('x86_64' 'i686' 'pentium4' 'armv6h' 'armv7h' 'aarch64')

makedepends=('docbook-xsl'
             'meson'
             'unicode-character-database')

depends=('acl'
         'bash'
         'db5.3'
         'glib2'
         'glibc'
         'libevent'
         'libldap'
         'libgcrypt'
         'libxcrypt'
         'pam'
         'perl'
         'perl-net-dbus')

optdepends=('localsearch: AFP Spotlight support'
            'talloc: AFP Spotlight support'
            'tinysparql: AFP Spotlight support'
            'avahi>=0.6: Automatic service discovery support'
            'krb5: Kerberos user authentication support'
            'mariadb-libs: MySQL CNID backend support'
            'libcups: Network printer queues support'
            'libtirpc: Quota support'
            'rpcsvc-proto: Quota support'
            'libwrap: TCP wrappers support'
            'cracklib: Weak password detection')

conflicts=('netatalk-ddp'
           'netatalk2')

backup=('etc/afp.conf'
        'etc/atalkd.conf'
        'etc/extmap.conf'
        'etc/papd.conf'
        'etc/pam.d/netatalk')

build() {
  docbookver=`pacman -Q docbook-xsl | awk '{split($2,a,"-"); print a[1]}'`
  cd "${srcdir}/${pkgname}-${pkgver}"
  arch-meson . build \
    --localstatedir /var/lib \
    -Dwith-appletalk=true \
    -Dwith-bdb-version=5.3 \
    -Dwith-dbus-sysconf-path=/usr/share/dbus-1/system.d \
    -Dwith-docbook-path=/usr/share/xml/docbook/xsl-stylesheets-${docbookver} \
    -Dwith-dtrace=false \
    -Dwith-init-hooks=false \
    -Dwith-init-style=systemd \
    -Dwith-lockfile-path=/run/netatalk.pid \
    -Dwith-overwrite=true \
    -Dwith-readmes=false \
    -Dwith-spooldir=/var/spool/netatalk
  meson compile -C build
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  meson install -C build --destdir "${pkgdir}"
  rm -rf "${pkgdir}/usr/share/doc"
}