summaryrefslogtreecommitdiff
path: root/community/mate-user-share/PKGBUILD
blob: 380ea8537cc817918dcf888b2753f1a406ff8fa7 (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
# $Id: PKGBUILD 104314 2014-01-17 12:43:05Z flexiondotorg $
# Maintainer : Martin Wimpress <code@flexion.org>

pkgname=mate-user-share
pkgver=1.6.1
pkgrel=6
pkgdesc="User level public file sharing via WebDAV."
url="http://mate-desktop.org"
arch=('i686' 'x86_64')
license=('GPL')
depends=('apache' 'dbus-glib' 'dconf' 'libunique' 'mod_dnssd')
makedepends=('libcanberra' 'libnotify' 'mate-common' 'mate-doc-utils'
             'mate-file-manager' 'perl-xml-parser')
options=('!emptydirs')
groups=('mate-extra')
install=${pkgname}.install
source=("http://pub.mate-desktop.org/releases/1.6/${pkgname}-${pkgver}.tar.xz"
        "https://github.com/mate-desktop/mate-user-share/commit/7a0305478295e9e7c284372677a4cbc382444482.diff")
sha1sums=('83f161dee79ea0ae4345c54a5b1339f673f68e8f'
          'ffa10ae69f5edf08d605418182f3c5bc975eb3cf')

prepare() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    # do not use download dir for incoming bluetooth downloads if mate-bluetooth isn't installed
    patch -Np1 -i "${srcdir}/7a0305478295e9e7c284372677a4cbc382444482.diff"
}

build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    PYTHON=/usr/bin/python2 ./configure \
        --prefix=/usr \
        --libexec=/usr/lib/${pkgname} \
        --sysconfdir=/etc \
        --disable-static \
        --disable-scrollkeeper \
        --disable-bluetooth
    make
}

package() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    make  DESTDIR="${pkgdir}" install
    rm -f "${pkgdir}/usr/share/mate-user-share/dav_user_2.0.conf"
}