summaryrefslogtreecommitdiff
path: root/libre/spacefm-libre/PKGBUILD
blob: 10b6cec158f4e64f9b8e8159c42b20e73ffbe467 (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
# $Id: PKGBUILD 108682 2014-04-01 08:51:32Z bpiotrowski $
# Maintainer (Arch):  Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Contributor (Arch): IgnorantGuru http://igurublog.wordpress.com/contact-ignorantguru/
# Contributor (Arch): ridikulus_rat <the.ridikulus.rat@gmail.com>
# Maintainer: André Silva <emulatorman@parabola.nu>
# Contributor: Edison Ibañez <arkhan.xxx@gmail.com>

_pkgname=spacefm
pkgname=spacefm-libre
pkgver=0.9.4
pkgrel=1
pkgdesc='Multi-panel tabbed file manager, with unar support'
arch=('i686' 'x86_64')
url='http://ignorantguru.github.com/spacefm/'
license=('GPL3')
install=$_pkgname.install
depends=('gtk3' 'shared-mime-info' 'desktop-file-utils' 'startup-notification'
         'systemd' 'bash' 'unar')
makedepends=('intltool' 'gettext')
optdepends=('lsof: device processes'
            'wget: plugin download'
            'gksu: perform as root functionality'
            'udevil: mount as non-root user and mount networks'
            'udisks: mount as non-root user'
            'udisks2: mount as non-root user')
replaces=($_pkgname)
conflicts=($_pkgname)
provides=($_pkgname=$pkgver)
source=(https://github.com/IgnorantGuru/spacefm/archive/$pkgver.tar.gz
        libre.patch)
md5sums=('daeee7dcccea33d6258a0a9d783470c4'
         '30ba2b4b8f5ae7bf1552689b192eab89')

prepare() {
  # replace nonfree unrar with unar support
  cd $_pkgname-$pkgver
  patch -Np1 -i $srcdir/libre.patch src/ptk/ptk-file-archiver.c
}

build() {
  cd $_pkgname-$pkgver
  ./configure --prefix=/usr \
    --disable-pixmaps \
    --with-gtk3
  make
}

package() {
  cd $_pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}