summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6a4741520f47c85ee7d0086e6d68a2d83c1c7ebb (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
# Maintainer : Kresimir Pripuzic <kpripuzic@gmail.com>
# Contributor: Andrey Vetrov <vetrov@mail.ru>
# https://aur.archlinux.org/packages/file-roller-tmp/

pkgname=file-roller-tmp
pkgver=3.32.0
pkgrel=1
pkgdesc="Create and modify archives. SSD-friendly version (stores temporary files in /tmp)."
url="https://gitlab.gnome.org/GNOME/file-roller"
arch=(x86_64)
license=(GPL2)
provides=("file-roller=$pkgver")
conflicts=('file-roller')
replaces=('file-roller')
depends=('gtk3' 'dconf' 'libarchive' 'file' 'json-glib' 'libnotify' 'zip' 'unzip')
makedepends=('yelp-tools' 'git' 'libnautilus-extension' 'meson' 'appstream-glib')
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)
_commit=8242336acef76ac701b32458d540489200c75dc3  # tags/3.32.0^0
source=("git+https://gitlab.gnome.org/GNOME/file-roller.git#commit=$_commit"
        'tmp-as-temp.patch')
sha256sums=('SKIP' 'SKIP')

pkgver() {
  cd ${pkgname:0:11}
  git describe --tags | sed 's/-/+/g'
}

prepare() {
  cd ${pkgname:0:11}

  #patch
  cd $srcdir/${pkgname:0:11}
  patch -Np0 -i ../tmp-as-temp.patch
}

build() {
  arch-meson ${pkgname:0:11} build
  ninja -C build
}

check() {
  meson test -C build
}

package() {
  DESTDIR="$pkgdir" meson install -C build
}