blob: 42fcc6d0c7aaff94931c7079fb54ec8f4fff1915 (
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
|
# $Id$
# Maintainer: Kresimir Pripuzic <kpripuzic@gmail.com>
pkgname=file-roller-tmp
pkgver=3.24.1
pkgrel=1
pkgdesc="The file-roller with an additional patch to put temporary files in /tmp instead of ~/.cache (and thus to reduce the amount of writes to SSDs)."
arch=(i686 x86_64)
license=(GPL)
depends=(gtk3 dconf libarchive file json-glib libnotify zip unzip)
makedepends=(intltool itstool docbook-xsl gnome-common git libnautilus-extension)
optdepends=('p7zip: 7z, arj, exe and encrypted zip files support'
'unrar: better RAR archive support'
'unace: ACE archive support'
'lrzip: lrzip archive support')
groups=(gnome-extra)
provides=('file-roller')
conflicts=('file-roller')
_commit=e6ef6fa43a6d5d6e1509f122a206870adc113563 # tags/3.24.1^0
source=("git+https://git.gnome.org/browse/file-roller#commit=$_commit"
tmp-as-temp.patch)
sha256sums=('SKIP'
'753c6ee41772677b115f4178fe6384c21d8aa5d489a6074f659d5305736acf57')
pkgver() {
cd ${pkgname:0:11}
git describe --tags | sed 's/-/+/g'
}
prepare() {
cd ${pkgname:0:11}
NOCONFIGURE=1 ./autogen.sh
#patch
cd $srcdir/${pkgname:0:11}
patch -Np0 -i ../tmp-as-temp.patch
}
build() {
cd ${pkgname:0:11}
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
--libexecdir=/usr/lib/$pkgname --disable-static --disable-schemas-compile
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
package() {
cd ${pkgname:0:11}
make DESTDIR="$pkgdir" install
}
|