aboutsummaryrefslogtreecommitdiff
path: root/t/02.2-unit-repo/test/test2/test2.SlackBuild
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-08-31 00:26:15 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-08-31 00:26:15 +0200
commit1487aaecb1db46315bd267854f71de985caafda7 (patch)
treeaab6662c04257b353031135fec59c7f57ffb4a60 /t/02.2-unit-repo/test/test2/test2.SlackBuild
parente58c649c2a37dd24399a01b5469ad17b30853081 (diff)
downloadsbotools2-1487aaecb1db46315bd267854f71de985caafda7.tar.xz
02.2-unit-repo.t: add test for get_sbo_downloads for 32bit
Diffstat (limited to 't/02.2-unit-repo/test/test2/test2.SlackBuild')
-rw-r--r--t/02.2-unit-repo/test/test2/test2.SlackBuild15
1 files changed, 15 insertions, 0 deletions
diff --git a/t/02.2-unit-repo/test/test2/test2.SlackBuild b/t/02.2-unit-repo/test/test2/test2.SlackBuild
new file mode 100644
index 0000000..f601f6a
--- /dev/null
+++ b/t/02.2-unit-repo/test/test2/test2.SlackBuild
@@ -0,0 +1,15 @@
+#!/bin/bash
+PRGNAM="test2"
+VERSION=${VERSION:-1.0}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+TMP=${TMP:-/tmp/SBo}
+OUTPUT=${OUTPUT:-/tmp}
+
+mkdir -p $TMP/$PRGNAM-$VERSION
+cp README $TMP/$PRGNAM-$VERSION
+mkdir -p $OUTPUT/package-$PRGNAM/usr/doc/$PRGNAM-$VERSION
+cp README $OUTPUT/package-$PRGNAM/usr/doc/$PRGNAM-$VERSION
+cd $OUTPUT/package-$PRGNAM
+
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-noarch-$BUILD$TAG.tgz