contrib/gcr/Pkgfile

32 lines
903 B
Plaintext
Raw Normal View History

2015-05-17 05:22:44 +02:00
# Description: Libraries for cryptographic UIs and accessing PKCS#11 modules.
# URL: https://developer.gnome.org/gcr/
# Maintainer: Danny Rawlins, crux at romster dot me
2019-11-09 10:15:15 +01:00
# Depends on: gnupg gtk3 p11-kit vala xorg-libxcomposite xorg-libxcursor xorg-libxinerama
2015-05-17 05:22:44 +02:00
name=gcr
2021-10-24 17:04:00 +02:00
version=3.40.0
2022-07-17 21:10:11 +02:00
release=1
source=(https://gitlab.gnome.org/GNOME/gcr/-/archive/$version/gcr-$version.tar.bz2
fix-meson-invalid-kw-argument.patch)
2015-05-17 05:22:44 +02:00
build() {
patch -Np1 -d $name-$version -i $SRC/fix-meson-invalid-kw-argument.patch
2020-06-14 12:08:53 +02:00
meson setup build $name-$version \
2015-05-17 05:22:44 +02:00
--prefix=/usr \
2020-06-14 12:08:53 +02:00
--libexecdir=/usr/lib \
2020-11-07 17:24:08 +01:00
--buildtype=plain \
2022-07-17 21:10:11 +02:00
-D b_pie=true \
2020-06-14 12:08:53 +02:00
-D gtk_doc=false
2020-11-07 17:24:08 +01:00
meson compile -C build -j ${JOBS-1}
2020-06-14 12:08:53 +02:00
DESTDIR=$PKG meson install -C build
2015-05-17 05:22:44 +02:00
2020-06-14 12:08:53 +02:00
rm -r $PKG/usr/share/locale
2015-05-17 05:22:44 +02:00
2020-06-14 12:08:53 +02:00
# https://bugzilla.gnome.org/show_bug.cgi?id=688161
install -Dm 644 /dev/stdin "$PKG/etc/security/limits.d/10-gcr.conf" <<END
@users - memlock 1024
END
2015-05-17 05:22:44 +02:00
}