66 lines
2 KiB
Bash
66 lines
2 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=shared-mime-info
|
|
_commit=9a6d6b8e963935f145f3a1ef446552de6996dada # = master 2023-11-12 = v2.4
|
|
pkgver=2.4
|
|
pkgrel=01
|
|
pkgdesc="Freedesktop.org Shared MIME Info"
|
|
depends=('libxml2' 'glib2' 'glibc' 'gcc-libs')
|
|
makedepends=('gettext' 'xmlto' 'docbook-xsl' 'git' 'meson')
|
|
options=(!makeflags)
|
|
install=shared-mime-info.install
|
|
# https://gitlab.freedesktop.org/xdg/shared-mime-info
|
|
url="https://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec/"
|
|
source=("git+https://gitlab.freedesktop.org/xdg/shared-mime-info.git#commit=$_commit"
|
|
# to run the testsuite
|
|
"git+https://gitlab.freedesktop.org/xdg/xdgmime.git#commit=92f6a09fda2b23c2ab95cede8eb0612ca96bd0f7" # master 2022-01-19
|
|
update-mime-database.hook)
|
|
|
|
pkgver() {
|
|
cd $pkgname
|
|
git describe --tags | sed 's/^Release.//;s/\([^-]*-g\)/\1/;s/-/+/g;'
|
|
}
|
|
|
|
prepare() {
|
|
# build xdgmime from source to run the testsuite - check HACKING.md
|
|
CFLAGS= make -C xdgmime
|
|
}
|
|
|
|
build() {
|
|
arch-meson ${pkgname} build \
|
|
-D update-mimedb=false \
|
|
-D xdgmime-path=${srcdir}/xdgmime
|
|
|
|
# Print config
|
|
meson configure build
|
|
# compile it
|
|
ninja -C build
|
|
}
|
|
|
|
check() {
|
|
meson test -C build --print-errorlogs
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" meson install -C build
|
|
# use a prefix to run it early enough - other hooks may depend on it - FS#72858
|
|
install -Dm644 "$srcdir"/update-mime-database.hook "$pkgdir"/usr/share/libalpm/hooks/30-update-mime-database.hook
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=('GPL2')
|
|
|
|
sha256sums=(SKIP
|
|
SKIP
|
|
f08efbcbac9d2bd18a805b8dcf3ed06d7763b97eca5935aa64d65593774b6501) # update-mime-database.hook
|
|
|
|
## d48768094a7a906215d112634dc3f55fe59136958255f5d1c1fef8105c3f80a1 shared-mime-info-2.4-01-x86_64.pkg.tar.lz
|
|
|