From 9071b5dc7b11322e0934b4c72cad70a344d6c5db Mon Sep 17 00:00:00 2001 From: Slack Coder Date: Mon, 7 Jun 2021 13:29:48 -0500 Subject: add taler exchange and merchant --- taler-exchange/README | 6 +++ taler-exchange/download.sh | 29 +++++++++++++ taler-exchange/slack-desc | 12 ++++++ taler-exchange/taler-exchange.SlackBuild | 73 ++++++++++++++++++++++++++++++++ taler-exchange/taler-exchange.info | 8 ++++ 5 files changed, 128 insertions(+) create mode 100644 taler-exchange/README create mode 100755 taler-exchange/download.sh create mode 100644 taler-exchange/slack-desc create mode 100755 taler-exchange/taler-exchange.SlackBuild create mode 100644 taler-exchange/taler-exchange.info (limited to 'taler-exchange') diff --git a/taler-exchange/README b/taler-exchange/README new file mode 100644 index 0000000..2ea3751 --- /dev/null +++ b/taler-exchange/README @@ -0,0 +1,6 @@ +The exchange for the Taler payment system. + +The development version is used for this build. Taler also requires some +bootstrapping in order to follow the usual build steps. + +Download and create the expected sourcecode into a tar file by running ./download.sh. diff --git a/taler-exchange/download.sh b/taler-exchange/download.sh new file mode 100755 index 0000000..31d62bd --- /dev/null +++ b/taler-exchange/download.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +# exit early on error +set -e + +GIT_REPO=${GIT_REPO:-https://git.taler.net/exchange.git} +GIT_REPO_NAME=exchange +PRGNAM=taler-exchange +VERSION=${VERSION:-dadb96} + +CWD=$(pwd) +OUTPUT="${OUTPUT:-/tmp}" +PKG="$TMP/package-$PRGNAM" +TMP=${TMP:-/tmp/sky} + +mkdir -p "$TMP" +cd "$TMP" +rm -fr "$GIT_REPO_NAME" "$PRGNAM-$VERSION" +git clone "$GIT_REPO" +mv "$GIT_REPO_NAME" "$PRGNAM-$VERSION" + +cd "$PRGNAM-$VERSION" +git checkout "$VERSION" +./bootstrap +rm -fr .git + +cd "$TMP" +tar -f "$OUTPUT/$PRGNAM-$VERSION.tar.gz" -C "$TMP" -cj "$PRGNAM-$VERSION" +echo "$OUTPUT/$PRGNAM-$VERSION.tar.gz" diff --git a/taler-exchange/slack-desc b/taler-exchange/slack-desc new file mode 100644 index 0000000..e4aaa1d --- /dev/null +++ b/taler-exchange/slack-desc @@ -0,0 +1,12 @@ + |-----handy-ruler------------------------------------------------------| +taler-exchange: taler-exchange +taler-exchange: +taler-exchange: The exchange for the Taler payment system. +taler-exchange: +taler-exchange: +taler-exchange: +taler-exchange: +taler-exchange: +taler-exchange: +taler-exchange: +taler-exchange: diff --git a/taler-exchange/taler-exchange.SlackBuild b/taler-exchange/taler-exchange.SlackBuild new file mode 100755 index 0000000..513d6de --- /dev/null +++ b/taler-exchange/taler-exchange.SlackBuild @@ -0,0 +1,73 @@ +#!/bin/sh + +PRGNAM=taler-exchange +VERSION=${VERSION:-dadb96} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION*.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --disable-static \ + --build=$ARCH-slackware-linux +make +make DESTDIR="$PKG" install + +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 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +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} diff --git a/taler-exchange/taler-exchange.info b/taler-exchange/taler-exchange.info new file mode 100644 index 0000000..20a44e8 --- /dev/null +++ b/taler-exchange/taler-exchange.info @@ -0,0 +1,8 @@ +PRGNAM="taler-exchange" +VERSION="dadb96" +HOMEPAGE="https://taler.net" +DOWNLOAD="UNSUPPORTED" +MD5SUM="UNSUPPORTED" +REQUIRES="gnunet Jinja2" +MAINTAINER="Slack Coder" +EMAIL="slackcoder@server.ky" -- cgit v1.2.3