summaryrefslogtreecommitdiff
path: root/community/mate-user-share/PKGBUILD
blob: ccf81858d2db7f3973ea44194b3741581215b849 (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
# $Id: PKGBUILD 105613 2014-02-11 18:11:20Z flexiondotorg $
# Maintainer : Martin Wimpress <code@flexion.org>

pkgname=mate-user-share
pkgver=1.6.1
pkgrel=7
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')
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"
}