summaryrefslogtreecommitdiff
path: root/community/file-roller/APKBUILD
blob: 37005d7e19263631d1e9b2d39ff2f2876eb15ee0 (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
52
53
54
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=file-roller
pkgver=43.0
pkgrel=3
pkgdesc="File Roller is an archive manager for the GNOME desktop "
url="https://wiki.gnome.org/Apps/FileRoller"
# s390x blocked by mozjs91 -> nautilus-dev
arch="all !s390x"
license="GPL-2.0-or-later"
depends="cpio"
depends_doc="yelp"
makedepends="
	desktop-file-utils
	glib-dev
	gtk+3.0-dev
	itstool
	json-glib-dev
	libarchive-dev
	libhandy1-dev
	libnotify-dev
	libportal-dev
	meson
	nautilus-dev
	"
subpackages="$pkgname-lang $pkgname-doc $pkgname-nautilus"
source="https://download.gnome.org/sources/file-roller/${pkgver%.*}/file-roller-$pkgver.tar.xz"

build() {
	abuild-meson \
		-Db_lto=true \
		-Dpackagekit=false \
		-Dcpio=/usr/bin/cpio \
		. output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

nautilus() {
	pkgdesc="File Roller nautilus extension"
	install_if="$pkgname=$pkgver-r$pkgrel nautilus",
	amove usr/lib/nautilus/extensions-4/libnautilus-fileroller.so
}

sha512sums="
dff3d9ef5c96e5957fb4ca146072b5fdf0309299d0b1a4ab6db55e24a0652b52ba45915121db4d59d9b1ab60b4c3c64bbb56799a46a0eac5609236f4e1251837  file-roller-43.0.tar.xz
"