mirror of
https://github.com/dslm4515/BMLFS.git
synced 2025-08-03 16:40:25 +00:00
47 lines
1.5 KiB
Bash
47 lines
1.5 KiB
Bash
#! /bin/bash
|
|
|
|
# JSON GLib
|
|
# Source: https://download.gnome.org/sources/json-glib/1.10/json-glib-1.10.6.tar.xz
|
|
#
|
|
# $BUILD = Directory to temporarily install
|
|
# $PKGS = Directory to store built packages
|
|
#
|
|
# DEPS
|
|
# Required: GLib
|
|
# Recommended: gobject-introspection
|
|
# Optional: GTK-Doc
|
|
|
|
export PVER="1.10.6"
|
|
|
|
meson setup --prefix=/usr BLD &&
|
|
|
|
read -p "Compile?" && ninja -C BLD -j2 &&
|
|
|
|
sudo -S DESTDIR=$BUILD ninja -C BLD install &&
|
|
|
|
cd $BUILD && sudo -S mkdir -v ${BUILD}/install &&
|
|
cat > /tmp/slack-desc << "EOF"
|
|
# HOW TO EDIT THIS FILE:
|
|
# The "handy ruler" below makes it easier to edit a package description. Line
|
|
# up the first '|' above the ':' following the base package name, and the '|'
|
|
# on the right side marks the last column you can put a character in. You must
|
|
# make exactly 11 lines for the formatting to be correct. It's also
|
|
# customary to leave one space after the ':' except on otherwise blank lines.
|
|
|
|
|-----handy-ruler------------------------------------------------------|
|
|
json-glib: JSON-Glib (a de/serialization library for the JS Object Notation)
|
|
json-glib:
|
|
json-glib: JSON-GLib is a library providing serialization and deserialization
|
|
json-glib: support for the JavaScript Object Notation (JSON) format described
|
|
json-glib: by RFC 4627.
|
|
json-glib:
|
|
json-glib: Homepage: http://live.gnome.org/JsonGlib
|
|
json-glib:
|
|
json-glib:
|
|
json-glib:
|
|
json-glib:
|
|
EOF
|
|
sudo -S mv -v /tmp/slack-desc install/ &&
|
|
sudo -S makepkg -l y -c n $PKGS/json-glib-$PVER-$PSUFFIX &&
|
|
sudo -S rm -rf ${BUILD}/*
|