mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
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>
This commit is contained in:
parent
5e0a47d2cd
commit
d6c5a61b57
2 changed files with 27 additions and 20 deletions
|
@ -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
|
||||
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
|
||||
|
||||
make
|
||||
strip $PRGNAM
|
||||
make install DESTDIR=$PKG
|
||||
gzip $PKG/usr/man/man?/*
|
||||
"${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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue