43 lines
1.0 KiB
Bash
43 lines
1.0 KiB
Bash
#!/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'
|
|
'glib.sysconf')
|
|
depends=(libffi util-linux libpcre2 zlib)
|
|
makedepends=( )
|
|
md5sums=('6ac05ed98272c0a1927fbf1e32ebab8c'
|
|
'SKIP')
|
|
uses=()
|
|
arch=('x86_64')
|
|
|
|
cd $name-$version
|
|
|
|
setup(){
|
|
meson setup build --prefix=/usr \
|
|
--libdir=/usr/lib64/glib2.0 \
|
|
--default-library both \
|
|
-D glib_debug=disabled \
|
|
-D selinux=disabled \
|
|
-D sysprof=disabled
|
|
}
|
|
|
|
build(){
|
|
ninja -C build
|
|
}
|
|
|
|
package(){
|
|
ninja -C build install
|
|
mkdir -p ${DESTDIR}/etc/sysconf.d/
|
|
install ../glib.sysconf ${DESTDIR}/etc/sysconf.d/glib
|
|
mkdir -p ${DESTDIR}/etc/ld.so.conf.d/
|
|
echo "/usr/lib64/glib2.0/" > ${DESTDIR}/etc/ld.so.conf.d/glib.conf
|
|
mv ${DESTDIR}/usr/lib64/{glib2.0/pkgconfig,}
|
|
}
|
|
|