smlinux/base/glib/glib.SMBuild

38 lines
851 B
Text

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=glib
version=2.70.3
build=2sml
homepage="https://gitlab.gnome.org/GNOME/glib"
download="https://download.gnome.org/sources/glib/2.66/glib-$version.tar.xz"
desc="library of C routines"
requires="libffi util-linux pcre python3 gettext meson"
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
}
build() {
mkdir -p smbuild && cd smbuild
meson .. --prefix="/" \
-Dman=false \
-Dgtk_doc=false \
-Dselinux=disabled \
-Dinstalled_tests=false
ninja
DESTDIR="$pkg" ninja install
cp ../COPYING $pkgdocs/
mkfinalpkg
}
sha512sums="
993853772132feb0844e868408fa0ee803d4dad5e0827ed6410105b8746c05440313a9514d3b8d87385fe5133aacc2ff1e3e6418c0ce69c8f69f2977733f623c glib-2.70.3.tar.lz
"