contrib/gcr/Pkgfile

35 lines
992 B
Plaintext
Raw Normal View History

2015-05-17 05:22:44 +02:00
# Description: Libraries for cryptographic UIs and accessing PKCS#11 modules.
2023-05-28 10:34:08 +02:00
# URL: https://gitlab.gnome.org/GNOME/gcr
2023-03-10 18:09:00 +01:00
# Maintainer: Tim Biermann, tbier at posteo dot de
2024-02-13 01:09:11 +01:00
# Depends on: gnupg gtk4 libsecret p11-kit xorg-libxcomposite
2023-10-28 10:57:45 +02:00
# Optional: vala
2015-05-17 05:22:44 +02:00
name=gcr
2024-03-04 06:54:25 +01:00
version=4.2.1
2022-07-17 21:10:11 +02:00
release=1
2022-10-15 15:13:25 +02:00
source=(https://download.gnome.org/sources/$name/${version:0:3}/$name-$version.tar.xz)
2015-05-17 05:22:44 +02:00
build() {
2023-10-28 10:57:45 +02:00
prt-get isinst gobject-introspection || PKGMK_GCR+=' -D introspection=false'
prt-get isinst vala || PKGMK_GCR+=' -D vapi=false'
meson setup build $name-$version $PKGMK_GCR \
2023-03-10 18:09:00 +01:00
--prefix=/usr \
--libexecdir=/usr/lib \
--buildtype=plain \
--wrap-mode nodownload \
-D b_lto=true \
-D b_pie=true \
-D gtk_doc=false
2020-06-14 12:08:53 +02:00
2023-03-10 18:09:00 +01:00
meson compile -C build -j ${JOBS-1}
DESTDIR=$PKG meson install -C build
2015-05-17 05:22:44 +02:00
2023-03-10 18:09:00 +01:00
rm -r $PKG/usr/share/locale
2015-05-17 05:22:44 +02:00
2023-03-10 18:09:00 +01:00
# https://bugzilla.gnome.org/show_bug.cgi?id=688161
install -Dm 644 /dev/stdin "$PKG/etc/security/limits.d/10-gcr.conf" <<END
2020-06-14 12:08:53 +02:00
@users - memlock 1024
END
2015-05-17 05:22:44 +02:00
}