packaging/alpine/APKBUILD (2004 bytes)
1 # Contributor: Spenser Truex <truex@equwal.com> 2 # Maintainer: Spenser Truex <truex@equwal.com> 3 pkgname=sbm 4 pkgver=0.3 5 pkgrel=0 6 pkgdesc="Bookmark manager made of POSIX sh scripts, driven by fzf" 7 url="https://github.com/equwal/sbm" 8 arch="noarch" 9 # Upstream has not chosen a licence yet and ships no LICENSE file. Replace 10 # SBM_LICENSE_TBD with the SPDX identifier, and add 11 # install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE 12 # to package(). abuild's licence check rejects the token, which is intended. 13 license="SBM_LICENSE_TBD" 14 # abuild has no "a or b" operator. A menu is required; fzf is in community and 15 # works without a display, so it is the hard dependency. dmenu is in the 16 # aports tree too: install it instead if you run X11. 17 # sh and awk come from busybox, which is always installed. 18 depends="fzf" 19 makedepends="make" 20 checkdepends="shellcheck" 21 subpackages="$pkgname-doc" 22 source="$pkgname-$pkgver.tar.gz::https://github.com/equwal/sbm/archive/refs/tags/v$pkgver.tar.gz" 23 24 build() { 25 # Nothing is compiled; the package is a set of sh scripts. 26 : 27 } 28 29 check() { 30 # make check runs shellcheck -s sh over every script, then the test 31 # suite. The suite scripts the menu, the clipboard and curl: no display, 32 # no network. 33 make check 34 } 35 36 package() { 37 make DESTDIR="$pkgdir" PREFIX=/usr install 38 39 install -Dm644 README -t "$pkgdir"/usr/share/doc/$pkgname/ 40 install -Dm644 TODO -t "$pkgdir"/usr/share/doc/$pkgname/ 41 install -Dm644 usertags engines \ 42 -t "$pkgdir"/usr/share/doc/$pkgname/examples/ 43 } 44 45 # Optional at runtime, none of them pulled in: 46 # curl bm-title, bm-check 47 # jq bm-import of Chromium JSON bookmark files 48 # git bm-commit 49 # xclip clipboard under X11 (or xsel, or wl-clipboard under Wayland) 50 # xdg-utils opening URLs with xdg-open 51 52 # Alpine hashes sources with sha512, not sha256. No release tag exists yet, 53 # so there is nothing to hash: replace SBM_SHA512_TBD by running 54 # abuild checksum 55 sha512sums="SBM_SHA512_TBD sbm-0.3.tar.gz"