diff --git a/dev/libs/glib/ympbuild b/dev/libs/glib/ympbuild new file mode 100644 index 00000000..d2c2c0ca --- /dev/null +++ b/dev/libs/glib/ympbuild @@ -0,0 +1,35 @@ +#!/usr/bin/env bash +name='glib' +release='1' +version='2.75.0' +url='https://download.gnome.org/sources/glib/' +description='Low-level core library that forms the basis for projects such as GTK+ and GNOME.' +email='parduscix@yandex.ru' +maintainer='sulincix' +license=('GPLv3') +source=('https://download.gnome.org/sources/glib/2.75/glib-2.75.0.tar.xz') +depends=(libffi util-linux libpcre2 zlib) +makedepends=( ) +md5sums=('6ac05ed98272c0a1927fbf1e32ebab8c') +uses=() +arch=('x86_64') + +cd $name-$version + +setup(){ + meson setup build --prefix=/usr \ + --libdir=/usr/lib64 \ + --default-library both \ + -D glib_debug=disabled \ + -D selinux=disabled \ + -D sysprof=disabled +} + +build(){ + ninja -C build +} + +package(){ + ninja -C build install +} + diff --git a/sys/libs/libcap-ng/ympbuild b/sys/libs/libcap-ng/ympbuild new file mode 100644 index 00000000..e94f141d --- /dev/null +++ b/sys/libs/libcap-ng/ympbuild @@ -0,0 +1,37 @@ +#!/usr/bin/env bash +name='libcap-ng' +release='1' +version='0.8.3' +url='https://github.com/stevegrubb/libcap-ng/releases' +description='A library for Linux that makes using posix capabilities easy' +email='parduscix@yandex.ru' +maintainer='sulincix' +license=('LGPL2.1') +source=('https://github.com/stevegrubb/libcap-ng/archive/refs/tags/v0.8.3.zip') +depends=( ) +makedepends=( ) +md5sums=('4332df17c41730e487ed3a45af958e7a') +group=(sys.libs) +uses=() +uses_extra=(python) +python_depends=(python) +arch=('x86_64') + +cd $name-$version + +setup(){ + ./autogen.sh + ./configure --prefix=/usr \ + --libdir=/usr/lib64 \ + $(use_opt python --with-python --without-python) \ + $(use_opt python --with-python3 --without-python3) +} + +build(){ + make -j`nproc` +} + +package(){ + make install -j`nproc` +} +