zenity: Port to meson.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
Willy Sudiarto Raharjo 2022-06-16 18:09:28 +07:00
parent 516b064a90
commit 11a24b54d4
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -56,21 +56,26 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \ WEBKIT=false
CXXFLAGS="$SLKCFLAGS" \ pkg-config --exists webkit2gtk-4.0 && WEBKIT=true
./configure \
--prefix=/usr \ mkdir build
cd build
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
meson .. \
--buildtype=release \
--infodir=/usr/info \
--libdir=/usr/lib${LIBDIRSUFFIX} \ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \ --localstatedir=/var \
--mandir=/usr/man \ --mandir=/usr/man \
--enable-debug=no \ --prefix=/usr \
--enable-libnotify \ --sysconfdir=/etc \
--without-help-dir \ -Dlibnotify=true \
--build=$ARCH-slackware-linux -Dwebkitgtk=$WEBKIT
ninja
make DESTDIR=$PKG ninja install
make install-strip DESTDIR=$PKG cd ..
find $PKG/usr/man -type f -exec gzip -9 {} \; find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done