diff options
author | Mark Wagie | 2021-10-09 12:32:59 -0600 |
---|---|---|
committer | Mark Wagie | 2021-10-09 12:32:59 -0600 |
commit | 36e61aca7befd01b3e8fcc041aec22a01b42e512 (patch) | |
tree | b7f3df721efd2fe3e1c67fbb599a76ca4f7d191f /PKGBUILD | |
parent | a9a2ccb6e665e91babb39de95b947b192bc677d8 (diff) | |
download | aur-36e61aca7befd01b3e8fcc041aec22a01b42e512.tar.gz |
4.2.3
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 82 |
1 files changed, 41 insertions, 41 deletions
@@ -2,8 +2,8 @@ # Co-Maintainer: Joost Bremmer <contact at madeofmagicandwires dot online> # Contributor: Bogdan <d0xi at inbox dot ru> pkgname=cheat -pkgver=4.2.2 -pkgrel=3 +pkgver=4.2.3 +pkgrel=1 pkgdesc="Allows you to create and view interactive cheatsheets on the command-line" arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h') url="https://github.com/cheat/cheat" @@ -11,7 +11,7 @@ license=('MIT' 'CC0 1.0 Universal') makedepends=('go' 'git' 'pandoc') optdepends=('bash-completion: for bash completions' 'fzf: Fuzzy Finder integration for bash-completion') -conflicts=("python-$pkgname" "$pkgname-bash-git") +conflicts=("python-$pkgname") replaces=("python-$pkgname") backup=("etc/$pkgname/conf.yml") _commit='92db692c0fd6348793ee0641cb63d08977be90fd' @@ -19,58 +19,58 @@ source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz" 'conf.yml' 'git+https://github.com/cheat/cheatsheets.git' "cheatsheets-$pkgver-LICENSE::https://raw.githubusercontent.com/cheat/cheatsheets/master/.github/LICENSE.txt") -sha256sums=('b4fb5a0d63bad020ca240a8e27b573ef127a1ca0f27e87a2cb8bd817c258611a' +sha256sums=('9624160ba542fb51bbd959d8c68b76f82ea324a6186d8d6d544b0efd8c9cc8ca' 'a0aa691a318219d048107b835fe0e8cddfa734618fc5ccbb800b5bb463e00ea5' 'SKIP' 'a2010f343487d3f7618affe54f789f5487602331c0a8d03f49e9a7c547cf0499') prepare() { - # Prevent creation of a `go` directory in one's home. - # Sometimes this directory cannot be removed with even `rm -rf` unless - # one becomes root or changes the write permissions. - export GOPATH="$srcdir/gopath" - go clean -modcache + # Prevent creation of a `go` directory in one's home. + # Sometimes this directory cannot be removed with even `rm -rf` unless + # one becomes root or changes the write permissions. + export GOPATH="$srcdir/gopath" + go clean -modcache } build() { - cd "$pkgname-$pkgver" - export CGO_CPPFLAGS="${CPPFLAGS}" - export CGO_CFLAGS="${CFLAGS}" - export CGO_CXXFLAGS="${CXXFLAGS}" - export CGO_LDFLAGS="${LDFLAGS}" - export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" - go build -v "./cmd/$pkgname" + cd "$pkgname-$pkgver" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" + go build -v "./cmd/$pkgname" - # Generate man page - pandoc -s -t man "doc/$pkgname.1.md" -o "doc/$pkgname.1" + # Generate man page + pandoc -s -t man "doc/$pkgname.1.md" -o "doc/$pkgname.1" - # Clean mod cache for makepkg -C - go clean -modcache + # Clean mod cache for makepkg -C + go clean -modcache } package() { - cd "$pkgname-$pkgver" - install -Dm755 "$pkgname" -t "$pkgdir/usr/bin" - install -Dm755 "scripts/$pkgname.bash" \ - "$pkgdir/usr/share/bash-completion/completions/$pkgname" - install -Dm755 "scripts/$pkgname.fish" -t "$pkgdir/usr/share/fish/completions" + cd "$pkgname-$pkgver" + install -Dm755 "$pkgname" -t "$pkgdir/usr/bin" + install -Dm755 "scripts/$pkgname.bash" \ + "$pkgdir/usr/share/bash-completion/completions/$pkgname" + install -Dm755 "scripts/$pkgname.fish" -t "$pkgdir/usr/share/fish/completions" - # Conflicts with zsh-suggestions, copy or symlink from the doc folder -# install -Dm755 "scripts/$pkgname.zsh" "$pkgdir/usr/share/zsh/site-functions/_$pkgname" - install -Dm755 "scripts/$pkgname.zsh" "$pkgdir/usr/share/doc/$pkgname/_$pkgname" + # Conflicts with zsh-suggestions, copy or symlink from the doc folder +# install -Dm755 "scripts/$pkgname.zsh" "$pkgdir/usr/share/zsh/site-functions/_$pkgname" + install -Dm755 "scripts/$pkgname.zsh" "$pkgdir/usr/share/doc/$pkgname/_$pkgname" - install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/$pkgname-LICENSE" - install -Dm644 "doc/$pkgname.1" -t "$pkgdir/usr/share/man/man1" + install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/$pkgname-LICENSE" + install -Dm644 "doc/$pkgname.1" -t "$pkgdir/usr/share/man/man1" - install -dm755 "$pkgdir/usr/share/$pkgname/cheatsheets/community" - find "$srcdir/cheatsheets" \ - -maxdepth 1 \ - -type f \ - -perm 644 \ - -exec \ - install -m644 "{}" \ - "$pkgdir/usr/share/$pkgname/cheatsheets/community/" \; - install -Dm644 "$srcdir/conf.yml" -t "$pkgdir/etc/$pkgname" - install -Dm644 "$srcdir/cheatsheets-$pkgver-LICENSE" \ - "$pkgdir/usr/share/licenses/$pkgname/cheatsheets-LICENSE" + install -d "$pkgdir/usr/share/$pkgname/cheatsheets/community" + find "$srcdir/cheatsheets" \ + -maxdepth 1 \ + -type f \ + -perm 644 \ + -exec \ + install -m644 "{}" \ + "$pkgdir/usr/share/$pkgname/cheatsheets/community/" \; + install -Dm644 "$srcdir/conf.yml" -t "$pkgdir/etc/$pkgname" + install -Dm644 "$srcdir/cheatsheets-$pkgver-LICENSE" \ + "$pkgdir/usr/share/licenses/$pkgname/cheatsheets-LICENSE" } |