diff options
author | Slack Coder <slackcoder@server.ky> | 2021-06-07 13:29:48 -0500 |
---|---|---|
committer | Slack Coder <slackcoder@server.ky> | 2021-06-07 13:29:48 -0500 |
commit | 9071b5dc7b11322e0934b4c72cad70a344d6c5db (patch) | |
tree | 174d2595fda84af63f397c9bd83080e09aba06d0 | |
parent | 3997f372e71a3b142decfa0ef72118090d49da6e (diff) | |
download | slackbuilds-9071b5dc7b11322e0934b4c72cad70a344d6c5db.tar.xz |
add taler exchange and merchant
-rw-r--r-- | taler-exchange/README | 6 | ||||
-rwxr-xr-x | taler-exchange/download.sh | 29 | ||||
-rw-r--r-- | taler-exchange/slack-desc | 12 | ||||
-rwxr-xr-x | taler-exchange/taler-exchange.SlackBuild | 73 | ||||
-rw-r--r-- | taler-exchange/taler-exchange.info | 8 | ||||
-rw-r--r-- | taler-merchant/README | 6 | ||||
-rwxr-xr-x | taler-merchant/download.sh | 29 | ||||
-rw-r--r-- | taler-merchant/slack-desc | 12 | ||||
-rwxr-xr-x | taler-merchant/taler-merchant.SlackBuild | 80 | ||||
-rw-r--r-- | taler-merchant/taler-merchant.info | 8 |
10 files changed, 263 insertions, 0 deletions
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" diff --git a/taler-merchant/README b/taler-merchant/README new file mode 100644 index 0000000..7b7ebf5 --- /dev/null +++ b/taler-merchant/README @@ -0,0 +1,6 @@ +The merchant 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-merchant/download.sh b/taler-merchant/download.sh new file mode 100755 index 0000000..fab7477 --- /dev/null +++ b/taler-merchant/download.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +# exit early on error +set -e + +GIT_REPO=${GIT_REPO:-https://git.taler.net/merchant.git} +GIT_REPO_NAME=merchant +PRGNAM=taler-merchant +VERSION=${VERSION:-9b2eae} + +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-merchant/slack-desc b/taler-merchant/slack-desc new file mode 100644 index 0000000..6071631 --- /dev/null +++ b/taler-merchant/slack-desc @@ -0,0 +1,12 @@ + |-----handy-ruler------------------------------------------------------| +taler-merchant: taler-merchant +taler-merchant: +taler-merchant: The merchant for the Taler payment system. +taler-merchant: +taler-merchant: +taler-merchant: +taler-merchant: +taler-merchant: +taler-merchant: +taler-merchant: +taler-merchant: diff --git a/taler-merchant/taler-merchant.SlackBuild b/taler-merchant/taler-merchant.SlackBuild new file mode 100755 index 0000000..8b6c864 --- /dev/null +++ b/taler-merchant/taler-merchant.SlackBuild @@ -0,0 +1,80 @@ +#!/bin/sh + +PRGNAM=taler-merchant +VERSION=${VERSION:-9b2eae} +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/sky} +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 + +# make install does not exist for this project + +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 + +# A soon to be fixed bug expects this file, causing it to exit early with +# error. +mkdir -p "$PKG/usr/share/taler/merchant/spa" +touch "$PKG/usr/share/taler/merchant/spa/spa.html" + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a COPYING COPYING.* 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-merchant/taler-merchant.info b/taler-merchant/taler-merchant.info new file mode 100644 index 0000000..e889c73 --- /dev/null +++ b/taler-merchant/taler-merchant.info @@ -0,0 +1,8 @@ +PRGNAM="taler-merchant" +VERSION="9b2eae" +HOMEPAGE="https://taler.net" +DOWNLOAD="UNSUPPORTED" +MD5SUM="UNSUPPORTED" +REQUIRES="gnunet taler-exchange" +MAINTAINER="SlackCoder" +EMAIL="slackcoder@server.ky" |