aboutsummaryrefslogtreecommitdiff
path: root/pkgtools-go
diff options
context:
space:
mode:
authorSlack Coder <slackcoder@server.ky>2024-05-03 13:49:37 -0500
committerSlack Coder <slackcoder@server.ky>2024-05-03 14:17:27 -0500
commit97b33258577934feec22a139b163477cd976f811 (patch)
tree57d2f0d1748162730402de6853b423dbaf1a1fbf /pkgtools-go
parent5bf6a79a6fdd9e0611e6cc8e5ee0f274dac018ca (diff)
downloadslackbuilds-97b33258577934feec22a139b163477cd976f811.tar.xz
Lint using sbo-maintainer-tools
Diffstat (limited to 'pkgtools-go')
-rw-r--r--[-rwxr-xr-x]pkgtools-go/pkgtools-go.SlackBuild23
-rw-r--r--pkgtools-go/slack-desc16
2 files changed, 24 insertions, 15 deletions
diff --git a/pkgtools-go/pkgtools-go.SlackBuild b/pkgtools-go/pkgtools-go.SlackBuild
index 52bac4f..3d3dc2b 100755..100644
--- a/pkgtools-go/pkgtools-go.SlackBuild
+++ b/pkgtools-go/pkgtools-go.SlackBuild
@@ -1,11 +1,12 @@
-#!/bin/sh
+#!/bin/bash
-# Slackware build script for pkgtools
+cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=pkgtools-go
VERSION=${VERSION:-0.0.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_slackcoder}
+PKGTYPE=${PKGTYPE:-txz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -15,21 +16,15 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD="$(pwd)"
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP="${TMP:-/tmp/SBo}"
PKG="$TMP/package-$PRGNAM"
OUTPUT="${OUTPUT:-/tmp}"
-if [ "$ARCH" = "i586" ]; then
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "i686" ]; then
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "x86_64" ]; then
- LIBDIRSUFFIX="64"
-else
- LIBDIRSUFFIX=""
-fi
-
set -e
rm -rf "$PKG"
@@ -64,5 +59,5 @@ mkdir -p "$PKG/install"
cat "$CWD/slack-desc" > "$PKG/install/slack-desc"
cd "$PKG"
-/sbin/makepkg -l y -c n "$OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}"
+/sbin/makepkg -l y -c n "$OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/pkgtools-go/slack-desc b/pkgtools-go/slack-desc
index df9aa37..e30f441 100644
--- a/pkgtools-go/slack-desc
+++ b/pkgtools-go/slack-desc
@@ -1,5 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
|-----handy-ruler------------------------------------------------------|
-pkgtools-go: pkgtools-go
+pkgtools-go: pkgtools-go (pkgtools but in Golang)
pkgtools-go:
pkgtools-go: An alternative set of slackware package management tools.
pkgtools-go:
+pkgtools-go:
+pkgtools-go:
+pkgtools-go:
+pkgtools-go:
+pkgtools-go:
+pkgtools-go:
+pkgtools-go: