summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dbc93014a12fb12219ffde701a6bc02e24523d22 (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
# Maintainer: Philip Goto <philip.goto@gmail.com>

pkgname=app-icon-preview-git
pkgver=2.1.2.r17.g37c7475
pkgrel=1
pkgdesc='Tool for designing applications icons'
arch=(x86_64 aarch64)
url='https://gitlab.gnome.org/World/design/app-icon-preview'
license=(GPL3)
depends=(libhandy0)
makedepends=(
	git
	meson
	rust
)
provides=(app-icon-preview)
conflicts=(app-icon-preview)
source=(
	"git+${url}.git"
	"git+https://gitlab.gnome.org/Teams/Design/HIG-app-icons.git"
)
sha256sums=('SKIP' 'SKIP')

prepare() {
	cd app-icon-preview

	git submodule init
	git config 'submodule.hig.url' "${srcdir}/HIG-app-icons"
	git submodule update
}

pkgver() {
	cd app-icon-preview
	git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	arch-meson app-icon-preview build
	meson compile -C build
}

check() {
	meson test -C build --print-errorlogs
}

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