mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
added aur/shonenjump
This commit is contained in:
parent
9255326bd4
commit
3c5f4385d9
2 changed files with 55 additions and 0 deletions
40
aur/shonenjump/PKGBUILD
Normal file
40
aur/shonenjump/PKGBUILD
Normal file
|
@ -0,0 +1,40 @@
|
|||
# Maintainer: graysky <therealgraysky AT protonmail DOT com>
|
||||
|
||||
pkgname=shonenjump
|
||||
pkgver=0.8.0
|
||||
pkgrel=1
|
||||
pkgdesc="A faster way to change directory and improve command line productivity"
|
||||
arch=(x86_64)
|
||||
url="https://github.com/suzaku/shonenjump"
|
||||
license=(custom)
|
||||
makedepends=(go)
|
||||
depends=(glibc)
|
||||
conflicts=(autojump)
|
||||
install=readme.install
|
||||
source=("$pkgname-$pkgver.tar.gz::https://github.com/suzaku/shonenjump/archive/refs/tags/v$pkgver.tar.gz")
|
||||
b2sums=('9b46e3a27d29b2b1d3be3a703b90e33f5b4c5e5d3377df12bdcd5eee1efca9c35858b32462b9d100541fa76b59bac3b07f07d37825c83c510edca59504fffaf0')
|
||||
|
||||
build() {
|
||||
cd "$pkgname-$pkgver"
|
||||
CGO_CPPFLAGS="${CPPFLAGS}" CGO_CFLAGS="${CFLAGS}" CGO_CXXFLAGS="${CXXFLAGS}" CGO_LDFLAGS="${LDFLAGS}" \
|
||||
go build -buildmode=pie -ldflags "-linkmode external -extldflags \"${LDFLAGS}\""
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$pkgname-$pkgver"
|
||||
install -d "$pkgdir/usr/bin/"
|
||||
install -m755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
|
||||
|
||||
install -d "$pkgdir/usr/share/licenses/$pkgname"
|
||||
install -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
|
||||
install -d "$pkgdir/etc/profile.d"
|
||||
|
||||
cd scripts
|
||||
for i in bash fish zsh; do
|
||||
install -m644 "$pkgname.$i" "$pkgdir/etc/profile.d/$pkgname.$i"
|
||||
done
|
||||
|
||||
install -d "$pkgdir/usr/share/zsh/site-functions"
|
||||
install -m644 _j "$pkgdir/usr/share/zsh/site-functions/_j"
|
||||
}
|
15
aur/shonenjump/readme.install
Normal file
15
aur/shonenjump/readme.install
Normal file
|
@ -0,0 +1,15 @@
|
|||
## arg 1: the new package version
|
||||
## arg 2: the old package version
|
||||
|
||||
post_install() {
|
||||
cat <<END
|
||||
>>> Bash users will need to add the following to ~/.bashrc:
|
||||
[[ -f /etc/profile.d/shonenjump.sh ]] && source /etc/profile.d/shonenjump.sh
|
||||
|
||||
Fish users will need to add the following to ~/.config/fish/config.fish:
|
||||
[ -f /usr/share/shonenjump/shonenjump.fish ]; and source /usr/share/shonenjump/shonenjump.fish
|
||||
|
||||
Zsh users will need to add the following to ~/.zshrc:
|
||||
[[ -f /etc/profile.d/shonenjump.zsh ]] && source /etc/profile.d/shonenjump.zsh
|
||||
END
|
||||
}
|
Loading…
Reference in a new issue