summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 51eb1683590e88eb64a8f12a8ded487026aad99d (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
# Maintainer: ValHue <vhuelamo at gmail dot com>
#
# Contributor: ValHue <vhuelamo at gmail dot com>
#
pkgbase="caja-extensions"
pkgname="caja-gksu"
pkgver="1.20.1"
pkgrel="1"
pkgdesc="Allows you to open files with administration privileges using the \
context menu when browsing your files with Caja."
url="https://mate-desktop.org"
arch=('x86_64')
license=('GPL')
groups=('mate-extra')
depends=('caja' 'caja-extensions-common' 'gksu')
makedepends=('intltool' 'python')
source=("https://pub.mate-desktop.org/releases/${pkgver%.*}/$pkgbase-$pkgver.tar.xz")
sha256sums=('7610931d4a3135f2f3b88551652907e4ef25c48b3f18c8e83ecd65c3df606706')

build() {
    cd ${pkgbase}-${pkgver}
    PYTHON=/usr/bin/python2 ./configure \
        --prefix=/usr \

    #https://bugzilla.gnome.org/show_bug.cgi?id=656231
    sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool

    make
}

package() {
    cd ${pkgbase}-${pkgver}
    make -C gksu DESTDIR="${pkgdir}" install
}

# vim:set ts=4 sw=4 ft=sh et syn=sh ft=sh: