aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorSamuel Young <samyoung12788@gmail.com>2024-11-01 07:52:37 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-11-01 08:17:49 +0700
commit1e99f73286031c10ad082f0ec8584f20577c7eef (patch)
treed1d33fe41ee3396692c60447aa2daea0cc9a62cf /misc
parent9a58e5fb3e0be55b3ed6228383a898a216562315 (diff)
misc/tarotplane: Updated for version 1.00.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'misc')
-rw-r--r--misc/tarotplane/tarotplane.SlackBuild33
-rw-r--r--misc/tarotplane/tarotplane.info6
2 files changed, 28 insertions, 11 deletions
diff --git a/misc/tarotplane/tarotplane.SlackBuild b/misc/tarotplane/tarotplane.SlackBuild
index 37a8dff29b..ca188bb79f 100644
--- a/misc/tarotplane/tarotplane.SlackBuild
+++ b/misc/tarotplane/tarotplane.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for tarotplane
-# Copyright 2024 Samuel Young, MO, USA
+# Copyright 2024 Samuel Young, MO
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,11 +25,13 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=tarotplane
-VERSION=${VERSION:-0.3.0}
+VERSION=${VERSION:-1.00}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
+SRCNAM=App-Tarotplane
+
ARCH=noarch
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
@@ -46,9 +48,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/$VERSION.tar.gz
-cd $PRGNAM
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
+cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -56,14 +58,29 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-make install DESTDIR=$PKG \
+perl Makefile.PL \
PREFIX=/usr \
- MANDIR=/man \
- DOCDIR=/doc/$PRGNAM-$VERSION
+ INSTALLDIRS=vendor \
+ INSTALLVENDORMAN1DIR=/usr/man/man1 \
+ INSTALLVENDORMAN3DIR=/usr/man/man3
+make
+make test
+make install DESTDIR=$PKG
+
+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
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
+find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
+
+find $PKG -depth -type d -empty -delete || true
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ Changes LICENSE README.md demo.gif \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/misc/tarotplane/tarotplane.info b/misc/tarotplane/tarotplane.info
index 266e585de7..702270f35f 100644
--- a/misc/tarotplane/tarotplane.info
+++ b/misc/tarotplane/tarotplane.info
@@ -1,8 +1,8 @@
PRGNAM="tarotplane"
-VERSION="0.3.0"
+VERSION="1.00"
HOMEPAGE="https://codeberg.org/1-1sam/tarotplane"
-DOWNLOAD="https://codeberg.org/1-1sam/tarotplane/archive/0.3.0.tar.gz"
-MD5SUM="0d217df4f6139cb4235e93ca393b5376"
+DOWNLOAD="https://cpan.metacpan.org/authors/id/S/SA/SAMYOUNG/App-Tarotplane-1.00.tar.gz"
+MD5SUM="913220168cc902f7ba2e6123b93d981b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="perl-Curses"