summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRuijie Yu2020-10-21 15:26:30 -0400
committerRuijie Yu2020-10-21 15:33:31 -0400
commit83570b9baa6af0b786e5a07b2503827ce0f52587 (patch)
tree4ab488bc33f0c7a81c8c23c79e4baa7601b2894a
downloadaur-83570b9baa6af0b786e5a07b2503827ce0f52587.tar.gz
initial commit
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD53
2 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9b3f8211635
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = bass-fish
+ pkgdesc = Make Bash utilities usable in Fish shell
+ pkgver = 1.0
+ pkgrel = 1
+ url = https://github.com/edc/bass
+ arch = any
+ license = MIT
+ checkdepends = tree
+ checkdepends = python
+ depends = fish
+ source = https://github.com/edc/bass/archive/v1.0.tar.gz
+ b2sums = SKIP
+
+pkgname = bass-fish
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ae6ec66c3f8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,53 @@
+#
+pkgname=bass-fish
+_pkgname=bass
+pkgver=1.0
+pkgrel=1
+pkgdesc='Make Bash utilities usable in Fish shell'
+url="https://github.com/edc/$_pkgname"
+arch=(any)
+license=(MIT)
+depends=(fish)
+optdepends=()
+makedepends=()
+checkdepends=(
+ tree
+ python
+)
+source=(
+ "$url/archive/v$pkgver.tar.gz"
+)
+
+b2sums=(SKIP)
+
+_extracted="$_pkgname-$pkgver"
+_fish_vendor_func="usr/share/fish/vendor_functions.d/"
+_license_dir="usr/share/licenses/$pkgname/"
+_doc_dir="usr/share/doc/$pkgname/"
+
+check() {
+ _test_path="$srcdir/$_extracted/test"
+ fish "$_test_path/test_bass.fish" &&
+ fish "$_test_path/test_dollar_on_output.fish"
+}
+
+package() {
+ install -dm0755 \
+ "$pkgdir/$_fish_vendor_func" \
+ "$pkgdir/$_license_dir" \
+ "$pkgdir/$_doc_dir"
+
+ install -Dm0644 \
+ "$srcdir/$_extracted/functions/__bass.py" \
+ "$srcdir/$_extracted/functions/bass.fish" \
+ "$pkgdir/$_fish_vendor_func"
+
+ install -Dm0644 \
+ "$srcdir/$_extracted/LICENSE" \
+ "$pkgdir/$_license_dir"
+
+ install -Dm0644 \
+ "$srcdir/$_extracted/README.md" \
+ "$pkgdir/$_doc_dir"
+}
+