1
0
forked from ports/contrib
contrib-tek/gcr/Pkgfile

28 lines
776 B
Plaintext
Raw Normal View History

2015-05-17 13:22:44 +10: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 20:15:15 +11:00
# Depends on: gnupg gtk3 p11-kit vala xorg-libxcomposite xorg-libxcursor xorg-libxinerama
2015-05-17 13:22:44 +10:00
name=gcr
2021-01-27 22:43:34 +00:00
version=3.38.1
2018-09-02 18:25:15 +10:00
release=1
source=(https://download.gnome.org/sources/$name/${version:0:4}/$name-$version.tar.xz)
2015-05-17 13:22:44 +10:00
build() {
2020-06-14 20:08:53 +10:00
meson setup build $name-$version \
2015-05-17 13:22:44 +10:00
--prefix=/usr \
2020-06-14 20:08:53 +10:00
--libexecdir=/usr/lib \
2020-11-07 16:24:08 +00:00
--buildtype=plain \
2020-06-14 20:08:53 +10:00
-D gtk_doc=false
2020-11-07 16:24:08 +00:00
meson compile -C build -j ${JOBS-1}
2020-06-14 20:08:53 +10:00
DESTDIR=$PKG meson install -C build
2015-05-17 13:22:44 +10:00
2020-06-14 20:08:53 +10:00
rm -r $PKG/usr/share/locale
2015-05-17 13:22:44 +10:00
2020-06-14 20:08:53 +10: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 13:22:44 +10:00
}