jobextra/desktop-file-utils/PKGBUILD

57 lines
1.5 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=desktop-file-utils
pkgver=0.26
pkgrel=02
pkgdesc="Command line utilities for working with desktop entries"
src="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
arch=(x86_64)
url="https://www.freedesktop.org/wiki/Software/desktop-file-utils"
depends=(glib2)
makedepends=(git meson)
_commit=54cec012921e52eb66b6ee1a1f40f2e9c9849f7c # tags/0.26
source=("git+https://gitlab.freedesktop.org/xdg/desktop-file-utils.git#commit=$_commit"
update-desktop-database.hook)
pkgver() {
cd $pkgname
git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
}
prepare() {
cd $pkgname
# Support Desktop Entry Spec 1.5
git cherry-pick -n 425177a28b62 56d220dd679c
}
build() {
arch-meson $pkgname build
meson compile -C build
}
check() {
meson test -C build --print-errorlogs
}
package() {
depends+=(libglib-2.0.so)
meson install -C build --destdir "$pkgdir"
install -Dt "$pkgdir/usr/share/libalpm/hooks" -m644 *.hook
}
#---- license gpg-key sha256sums ----
license=(GPL)
validpgpkeys=('C01EDE5BB0D91E26D003662EC76BB9FEEAD12EA7') # Hans Petter Jansson <hpj@cl.no>
sha256sums=(SKIP
501f1eb35d9fbbd61666f40302b0ce63425299edf023c075986a24dc3ef18575) # update-desktop-database.hook