Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
upgpkg: zsh-history-substring-search 1.0.2-2: Rebuild to re-sign pack…
Browse files Browse the repository at this point in the history
…age.

Remove unnecessary quotes and curly braces.
Open ticket about license extraction: zsh-users/zsh-history-substring-search#148

git-svn-id: file:///srv/repos/svn-community/svn@1447421 9fca08f4-af9d-4005-b8df-a31f2cc04f65
  • Loading branch information
dvzrv committed Apr 19, 2023
1 parent 464c5c0 commit 34e4668
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions zsh-history-substring-search/trunk/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
# Maintainer: David Runge <dave@sleepmap.de>
# Maintainer: David Runge <dvzrv@archlinux.org>

pkgname=zsh-history-substring-search
pkgver=1.0.2
pkgrel=1
pkgrel=2
pkgdesc="ZSH port of Fish history search (up arrow)"
arch=('any')
arch=(any)
url="https://github.com/zsh-users/zsh-history-substring-search"
license=('BSD')
depends=('zsh')
source=("$pkgname-$pkgver.tar.gz::https://github.com/zsh-users/${pkgname}/archive/v${pkgver}.tar.gz")
license=(BSD)
depends=(zsh)
source=($url/archive/v$pkgver/$pkgname-v$pkgver.tar.gz)
sha512sums=('9547cdd74f6bd5b102ca29b7b455cd4ce7450fe86864b5a149365de4c37d3da887edb403b195e80c142fe61861a3e4c063a5d8ba08ec0532b27a1207c80a023d')
b2sums=('26c6a080f82586eef9b33bfbe1da89951a6bb9d8e7362dca83d90b9d491e3cd497fb3b4be2ab1a94082351711b941bd7942cd554e7e4d93a69d4168ef13f80ee')

prepare() {
cd "$pkgname-$pkgver"
sed -ne 4,37p ${pkgname}.zsh > LICENSE
sed -e 's/^# //g' -e 's/^#//g' -i LICENSE
# extract license info: https://github.com/zsh-users/zsh-history-substring-search/issues/148
sed -e 's/^# //g; s/^#//g' -ne 4,38p $pkgname-$pkgver/$pkgname.zsh > LICENSE
}

package() {
cd "$pkgname-$pkgver"
install -vDm 644 "${pkgname}.zsh" \
-t "${pkgdir}/usr/share/zsh/plugins/${pkgname}/"
# docs
install -vDm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}/"
# license
install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
install -vDm 644 $pkgname-$pkgver/$pkgname.zsh -t "$pkgdir/usr/share/zsh/plugins/$pkgname/"
install -vDm 644 $pkgname-$pkgver/README.md -t "$pkgdir/usr/share/doc/$pkgname/"
install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}

0 comments on commit 34e4668

Please sign in to comment.