summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 26ea9bd561218f6e3a66fbf444979c8fc1190968 (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
# Maintainer: Mattia Borda <mattiagiovanni.borda@icloud.com>

pkgname=desktop-files-creator-git
pkgver=1.2.1.r0.g7a2615f
pkgrel=1
pkgdesc='Simple app to create desktop files on GNU/Linux'
url=https://github.com/alexkdeveloper/${pkgname%-git}
arch=(i686 x86_64 armv7h aarch64)
license=(GPL3)
depends=(libadwaita vala)
checkdepends=(appstream-glib)
makedepends=(git meson)
provides=(${pkgname%-git})
conflicts=(${pkgname%-git})
source=(git+$url.git)
b2sums=(SKIP)

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

prepare() {
	sed -i "s/'validate'/'validate-relax'/" ${pkgname%-git}/data/meson.build
}

build() {
	arch-meson ${pkgname%-git} build
	meson compile -C build
}

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

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