aboutsummaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2019-08-18 06:56:18 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-08-18 06:56:18 +0700
commitc171c12e847b704e50613c508f4c7441dd700f7d (patch)
tree90b66b05ae4cbfcddceab1c9efaf192be8dec163 /desktop
parentc775a891e9906bf91f950f69112bbe3eec9016bf (diff)
desktop/bukubrow: Added (Application for Bukubrow WebExtension).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/bukubrow/README3
-rw-r--r--desktop/bukubrow/bukubrow.SlackBuild152
-rw-r--r--desktop/bukubrow/bukubrow.info130
-rw-r--r--desktop/bukubrow/slack-desc19
4 files changed, 304 insertions, 0 deletions
diff --git a/desktop/bukubrow/README b/desktop/bukubrow/README
new file mode 100644
index 000000000000..301563d64fe6
--- /dev/null
+++ b/desktop/bukubrow/README
@@ -0,0 +1,3 @@
+bukubrow - Bukubrow is a WebExtension for Buku, a command-line bookmark
+manager. This is the corresponding host that facilitates interfacing with
+the Buku database via native messaging.
diff --git a/desktop/bukubrow/bukubrow.SlackBuild b/desktop/bukubrow/bukubrow.SlackBuild
new file mode 100644
index 000000000000..c657e3ffdbbc
--- /dev/null
+++ b/desktop/bukubrow/bukubrow.SlackBuild
@@ -0,0 +1,152 @@
+#!/bin/sh
+
+# Slackware build script for bukubrow
+
+# Copyright 2019 Andrew Clemons, Wellington New Zealand
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=bukubrow
+SRCNAM=bukubrow-host
+VERSION=${VERSION:-5.0.0}
+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
+
+ if [ "$ARCH" = "i586" ]; then
+ if rustc -Vv | grep host | grep i686 > /dev/null ; then
+ ARCH=i686
+ fi
+ fi
+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=""
+ CARGOTARGET="--target i586-unknown-linux-gnu"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+ CARGOTARGET="--target i686-unknown-linux-gnu"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+ CARGOTARGET="--target x86_64-unknown-linux-gnu"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+ CARGOTARGET=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
+cd $SRCNAM-$VERSION
+
+# build offline
+# configuration tells cargo to use the configured directory
+# for dependencies intead of downloading from crates.io
+mkdir .cargo
+cat << EOF >> .cargo/config
+[source.crates-io]
+registry = 'https://github.com/rust-lang/crates.io-index'
+replace-with = 'vendored-sources'
+
+[source.vendored-sources]
+directory = '$(pwd)/vendor'
+EOF
+
+# deps and versions come from Cargo.lock
+mkdir vendor
+(
+ cd vendor
+
+ grep -h -A 3 "\[\[package\]\]" $(find ../ -maxdepth 1 -mindepth 1 -name Cargo.lock | tr '\n' ' ') | \
+ sed 's/[[:space:]]*=[[:space:]]*/=/g;s/^--//;s/^\[\[/--\n[[/' | \
+ awk 'BEGIN { RS = "--\n" ; FS="\n" } { print $2, $3, $4 }' | sed 's/"//g;s/name=//;s/ version=/=/' | \
+ grep crates\.io-index | sed 's/ source=.*$//' | sort -u | while read -r dep ; do
+
+ ver="$(printf "%s\n" "$dep" | cut -d= -f2)"
+ dep="$(printf "%s\n" "$dep" | cut -d= -f1)"
+
+ tar xvf $CWD/$dep-$ver.crate
+
+ touch $dep-$ver/.cargo-ok
+
+ # generate checksum
+ {
+ printf "{\n"
+ printf ' "files": {\n'
+
+ (
+ cd $dep-$ver
+ find . -type f -print0 | xargs -0 sha256sum | sed -n '/\.cargo-checksum\.json/!p' | sed 's/\.\///;s/^\([^ ]*\)[[:space:]][[:space:]]*\(.*\)$/"\2":"\1",/'
+ ) | sed '$ s/,$//'
+
+ printf " },\n"
+ printf ' "package": "'
+
+ sha256sum "$CWD/$dep-$ver.crate" | cut -f1 -d' ' | sed 's/$/"/'
+
+ printf "}\n"
+ } | python -c "import sys, json; data = sys.stdin.read(); print json.dumps(json.loads(data), sort_keys=True, indent=4, separators=(',', ' : '))" > $dep-$ver/.cargo-checksum.json
+ done
+)
+
+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 {} \;
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+cargo build --release $CARGOTARGET
+
+mkdir -p $PKG/usr/bin
+find target -name bukubrow -exec install -m 755 {} $PKG/usr/bin/bukubrow \;
+
+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 CHANGELOG.md LICENSE README.md $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:-tgz}
diff --git a/desktop/bukubrow/bukubrow.info b/desktop/bukubrow/bukubrow.info
new file mode 100644
index 000000000000..35b0bf66da05
--- /dev/null
+++ b/desktop/bukubrow/bukubrow.info
@@ -0,0 +1,130 @@
+PRGNAM="bukubrow"
+VERSION="5.0.0"
+HOMEPAGE="https://github.com/SamHH/bukubrow-host"
+DOWNLOAD="https://github.com/SamHH/bukubrow-host/archive/v5.0.0/bukubrow-host-5.0.0.tar.gz \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/ansi_term/ansi_term-0.11.0.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/argon2rs/argon2rs-0.2.5.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/arrayvec/arrayvec-0.4.10.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/atty/atty-0.2.11.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/backtrace-sys/backtrace-sys-0.1.24.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/backtrace/backtrace-0.3.9.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/bitflags/bitflags-1.0.4.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/blake2-rfc/blake2-rfc-0.2.18.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/byteorder/byteorder-1.3.1.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/cc/cc-1.0.25.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/cfg-if/cfg-if-0.1.5.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/clap/clap-2.33.0.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/cloudabi/cloudabi-0.0.3.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/constant_time_eq/constant_time_eq-0.1.3.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/dirs/dirs-1.0.5.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/failure/failure-0.1.5.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/failure_derive/failure_derive-0.1.5.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/fallible-iterator/fallible-iterator-0.1.6.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/fallible-streaming-iterator/fallible-streaming-iterator-0.1.9.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/fuchsia-cprng/fuchsia-cprng-0.1.1.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/itoa/itoa-0.4.3.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/libc/libc-0.2.43.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/libsqlite3-sys/libsqlite3-sys-0.13.0.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/linked-hash-map/linked-hash-map-0.4.2.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/lru-cache/lru-cache-0.1.1.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/memchr/memchr-2.2.0.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/nodrop/nodrop-0.1.13.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/numtoa/numtoa-0.1.0.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/pkg-config/pkg-config-0.3.14.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/proc-macro2/proc-macro2-0.4.19.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/quote/quote-0.6.8.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/rand_core/rand_core-0.3.1.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/rand_core/rand_core-0.4.0.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/rand_os/rand_os-0.1.3.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/rdrand/rdrand-0.4.0.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/redox_syscall/redox_syscall-0.1.40.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/redox_termios/redox_termios-0.1.1.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/redox_users/redox_users-0.3.0.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/rusqlite/rusqlite-0.17.0.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/rustc-demangle/rustc-demangle-0.1.9.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/ryu/ryu-0.2.6.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/scoped_threadpool/scoped_threadpool-0.1.9.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/serde/serde-1.0.79.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/serde_derive/serde_derive-1.0.79.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/serde_json/serde_json-1.0.30.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/strsim/strsim-0.8.0.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/syn/syn-0.15.6.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/synstructure/synstructure-0.10.1.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/termion/termion-1.5.2.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/textwrap/textwrap-0.11.0.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/time/time-0.1.40.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/unicode-width/unicode-width-0.1.5.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/unicode-xid/unicode-xid-0.1.0.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/vcpkg/vcpkg-0.2.6.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/vec_map/vec_map-0.8.1.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/webbrowser/webbrowser-0.5.1.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/widestring/widestring-0.4.0.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/winapi-i686-pc-windows-gnu/winapi-i686-pc-windows-gnu-0.4.0.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/winapi-x86_64-pc-windows-gnu/winapi-x86_64-pc-windows-gnu-0.4.0.crate \
+ https://crates-io.s3-us-west-1.amazonaws.com/crates/winapi/winapi-0.3.6.crate"
+MD5SUM="877e7b395b94e1e2d6e01f8a5d85b4f9 \
+ 294a49d3c53865fa7ac5d0ce2f5d5735 \
+ e1efb9a37395a38bd80ccfc911d4a6e8 \
+ 46a048c0b8b765bcbdc131e166410510 \
+ 5d7155b7fbc0e234c017f418f0dc9d64 \
+ ba6e371a9a197673d52165be88cc3b64 \
+ 9589900bcef3f72593483ce5b717fe3c \
+ e5767560aad375059c975285c07022c0 \
+ 027635e453eccbfd0a2b02a440e334a6 \
+ e5ff029879cdacd29148cd31da1f0564 \
+ 47b86728f2d479bd97148b8da4497027 \
+ 097e0d2392a5e65f9471f7af7001940a \
+ 135f6d6306e50606f0475ada50c33ce2 \
+ 1c8b50f8528dd37df7d984e0e4b61bd5 \
+ 701334c674b3fc3ace74045e3a2fae50 \
+ f9f233221c0202b616d6957925c41ac8 \
+ 6d780ab18da07be9ed423e7edfbcfd7e \
+ e8e663e88ee02ec47cfb984382cb62ae \
+ da9e0ce1dde4cf138247a142a1342aa8 \
+ 7543e8639ad2e29866b522e20c35152a \
+ 27260b46db6b9ac40318143d70a80ba3 \
+ 7bebca3c6217218fb42f89544d1499db \
+ 5524b53de0aad9352ca0d4d899f87046 \
+ d98fb138c4ceda8120332e757c8f65ab \
+ 42f81584165177e35c3ab677fe5a3c72 \
+ d281b59288f72c10056097b190d0144e \
+ 514a89ff59a9bf0671d7db4812725459 \
+ 8a39d8bd95f15af0840d2049f0e78a37 \
+ bbda7e9c572f651774dfdb0006b9f085 \
+ 87a9d36f5ebe5eae0c3e8d69d58752e1 \
+ ec258ed7b78c959a921262150d47e001 \
+ 0fb98687d43d7ffd5c1aa097a076f1e6 \
+ 8cab41822d03dfa674870315308fa392 \
+ 7058895bdca83bbda052d66b087f902e \
+ 5acfdc8656212bce8df1bcc43db34c3d \
+ c8d655d206cbe48b84a22544d6fc6d15 \
+ 7e94bf91e9faf1557da812a3444f23cc \
+ 01cb5402c0fd99cebac702b76f2f2669 \
+ d5a91ba6d74914190df5b355f891d6b1 \
+ f02a29bfffacbf545c84f2fc40581b7c \
+ 1d805df8d3022cb5bbe233d0a1898261 \
+ eb5f242e1152146eda805ada56599088 \
+ b492e0a70603c3903a44ec5cabd3ba21 \
+ 9dafb7952c4c6ba2ebc82a05f110286c \
+ 3b1280b17c2516528070bbeeda7a9bd5 \
+ 4aa06cafa12c56ee1e0515f2d0430bf5 \
+ 781d4ccf5d04c98fa02af207a9639249 \
+ 68b01820b3e985acc694d7c437f0a5ca \
+ d155c08de6c18bd55639ffed629894b9 \
+ 9f1f6e2fe9afbbcc351a7430962a7571 \
+ a8de006fe0c7e373c560dd51599287a8 \
+ 9775850c1cc8a4f209f2b6c03a6e700b \
+ d7c493ca4f84a7d50b53646421a37487 \
+ 5aaf04f9a94a6450e3e4963ddd62b92d \
+ e75c0721667b6bc86472ecf7b286d9fc \
+ 0eedbc32447f40b3045d6de3910b5415 \
+ 7f899d29628cfd67b7a46eee83bf2115 \
+ 85a67f6f40cf2df6e1f12791a2b1cf9a \
+ db96b50050277bf05a3c68534bbb9586 \
+ 09de9d01e7331ff3da11f58be8bef0df \
+ 40909511b3d0e2dba891f438715808d0"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Andrew Clemons"
+EMAIL="andrew.clemons@gmail.com"
diff --git a/desktop/bukubrow/slack-desc b/desktop/bukubrow/slack-desc
new file mode 100644
index 000000000000..ef10d75f69ea
--- /dev/null
+++ b/desktop/bukubrow/slack-desc
@@ -0,0 +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------------------------------------------------------|
+bukubrow: bukubrow (Host application for the Bukubrow WebExtension)
+bukubrow:
+bukubrow: Bukubrow is a WebExtension for Buku, a command-line bookmark manager.
+bukubrow: This is the corresponding host that facilitates interfacing with the
+bukubrow: Buku database via native messaging.
+bukubrow:
+bukubrow: https://github.com/SamHH/bukubrow-host
+bukubrow:
+bukubrow:
+bukubrow:
+bukubrow: