38 lines
794 B
Bash
Executable file
38 lines
794 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
. /etc/pkg/pkg.conf
|
|
. /var/lib/pkg/functions
|
|
|
|
name=$(basename $0)
|
|
version=2.56.1
|
|
url=http://ftp.gnome.org/pub/gnome/sources/glib/${version::4}/glib-$version.tar.xz
|
|
patch=http://www.linuxfromscratch.org/patches/blfs/8.3/glib-$version-skip_warnings-1.patch
|
|
|
|
fetch $url
|
|
fetch $patch
|
|
|
|
rm -fr $WORK_DIR/$name-$version
|
|
tar -xvf $SOURCE_DIR/$(basename $url) -C $WORK_DIR
|
|
|
|
cd $WORK_DIR/$name-$version
|
|
{ time \
|
|
{
|
|
patch -Np1 -i $SOURCE_DIR/glib-$version-skip_warnings-1.patch
|
|
|
|
./configure --prefix=/usr \
|
|
--with-pcre=system \
|
|
--with-python=/usr/bin/python3
|
|
make
|
|
make install
|
|
}
|
|
} 2>&1 | tee -a $LOG_DIR/$(basename $0).log
|
|
|
|
if [ $PIPESTATUS -ne 0 ]; then exit 1; fi;
|
|
|
|
rm -fr $WORK_DIR/$name-$version
|
|
|
|
registerpkg $(basename $0) $version
|
|
|
|
exit 0
|