diff options
author | Jay Lanagan <1995739+mac-a-r0ni@users.noreply.github.com> | 2024-04-25 06:56:29 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-04-27 09:28:31 +0700 |
commit | d6c5a61b574aa47907556115ef229758d6f27e9b (patch) | |
tree | 1d816a68c22f5516a9b3db00964c064946926d7d | |
parent | 5e0a47d2cd0cf341525aee3e32db07eed078b4d7 (diff) |
desktop/gtklock: Updated for version 3.0.0.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | desktop/gtklock/gtklock.SlackBuild | 41 | ||||
-rw-r--r-- | desktop/gtklock/gtklock.info | 8 |
2 files changed, 28 insertions, 21 deletions
diff --git a/desktop/gtklock/gtklock.SlackBuild b/desktop/gtklock/gtklock.SlackBuild index 7bcc1c46dbb2..80fb93a9beec 100644 --- a/desktop/gtklock/gtklock.SlackBuild +++ b/desktop/gtklock/gtklock.SlackBuild @@ -10,7 +10,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=gtklock -VERSION=${VERSION:-2.1.0} +VERSION=${VERSION:-3.0.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -61,28 +61,35 @@ chown -R root:root . find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ -# 20230407 bkw: sed surgery. Slackware 15.0 doesn't have a pkg-config -# pam.pc, so we have to remove it from LIBS, then add -lpam to LDLIBS. -# Also, use our CFLAGS, fix the man page path, and install to /usr, -# not /usr/local. -sed -i -e '/^LIBS\>/s,\<pam\>,,' \ - -e '/^LDLIBS\>/s,$, -lpam,' \ - -e "/-std=/s,= ,= $SLKCFLAGS ," \ - -e 's,share/man,man,g' \ - -e 's,usr/local,usr,g' \ - makefile - -make -strip $PRGNAM -make install DESTDIR=$PKG -gzip $PKG/usr/man/man?/* +mkdir -p meson-build +cd meson-build + CFLAGS="$SLKCFLAGS" \ + CXXFLAGS="$SLKCFLAGS" \ + meson setup .. \ + --buildtype=release \ + --infodir=/usr/info \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --localstatedir=/var \ + --mandir=/usr/man \ + --prefix=/usr \ + --sysconfdir=/etc + +"${NINJA:=ninja}" + DESTDIR=$PKG $NINJA install +cd .. + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true # It's a config file, so make it .new rename lock lock.new $PKG/etc/pam.d/$PRGNAM +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 + PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKGDOC -cp -a LICENSE README* $PKGDOC +cp -a LICENSE README.md $PKGDOC cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/desktop/gtklock/gtklock.info b/desktop/gtklock/gtklock.info index 991a7633d026..ad123e6a4f2d 100644 --- a/desktop/gtklock/gtklock.info +++ b/desktop/gtklock/gtklock.info @@ -1,10 +1,10 @@ PRGNAM="gtklock" -VERSION="2.1.0" +VERSION="3.0.0" HOMEPAGE="https://github.com/jovanlanik/gtklock/" -DOWNLOAD="https://github.com/jovanlanik/gtklock/archive/v2.1.0/gtklock-2.1.0.tar.gz" -MD5SUM="479d24e6d283e154cb4aa84beff645f3" +DOWNLOAD="https://github.com/jovanlanik/gtklock/archive/v3.0.0/gtklock-3.0.0.tar.gz" +MD5SUM="c8545d13ec005aac659257010b20d6a1" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="gtk-layer-shell scdoc" +REQUIRES="gtk-layer-shell gtk-session-lock scdoc" MAINTAINER="Jay Lanagan" EMAIL="j@lngn.net" |