summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d60d510d41b252eccccc758b27093fc9a72262bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Maintainer: Rafael Dominiquini <rafaeldominiquini at gmail dor com>

_pkgauthor=natecraddock
_pkgname=zf
pkgname=${_pkgname}-bin
pkgver=0.10.1
pkgrel=1
pkgdesc='a commandline fuzzy finder designed for filtering filepaths'
url="https://github.com/${_pkgauthor}/${_pkgname}"
_urlraw="https://raw.githubusercontent.com/${_pkgauthor}/${_pkgname}/${pkgver}"
arch=('x86_64' 'aarch64')
license=('MIT')
depends=('glibc')
makedepends=('tar')
conflicts=("${_pkgname}")
provides=("${_pkgname}")
source=("LICENSE-${pkgver}::${_urlraw}/LICENSE"
        "README-${pkgver}::${_urlraw}/README.md"
        "CHANGELOG-${pkgver}::${_urlraw}/CHANGELOG.md"
        "ZF-${pkgver}::${_urlraw}/doc/${_pkgname}.md"
        "MAN-${pkgver}.1::${_urlraw}/doc/${_pkgname}.1"
        "${_pkgname}-${pkgver}.bash::${_urlraw}/complete/${_pkgname}"
        "${_pkgname}-${pkgver}.zsh::${_urlraw}/complete/_${_pkgname}"
        "${_pkgname}-${pkgver}.fish::${_urlraw}/complete/${_pkgname}.fish")
source_x86_64=("${url}/releases/download/${pkgver}/${_pkgname}-${pkgver}-${arch[0]}-linux.tar.xz")
source_aarch64=("${url}/releases/download/${pkgver}/${_pkgname}-${pkgver}-${arch[1]}-linux.tar.xz")
sha256sums=('28cc086b5786113ea2b710c1976ba14b0fcf82eaa25e504f4b77be4e1e386fea'
            'e203862ec4ff38c56e60533ee2d9cc40d69f793d4b2a978c76591a50c762b472'
            '9f542f560c195d795fa5737109dcf30a5b61be7e052d2813dc1b3debac5640bb'
            'dc08af8dc9c117b19d6fb448903a4a8f2fc1e16fe2c66b0caa7a93f98ef607b9'
            '8a1dac436771737a51cde500ef45e6dc2e80fe83847766d918f2ff8a0a31aa37'
            '0b6ae96deaa67af93232c67b907744a8017c5dab75f415f9b122614f2e2d3504'
            'ed8f12c466300fc199740e07811afd0665c7977070b7cd9d0860033672bf4112'
            'b1275ea83fbc62507dfc96695d9455633a8b33fa879599975b52c2848b835a47')
sha256sums_x86_64=('1fdf501c8d946f4b766aa736be98277efa60824de5e98204694606f62904cea9')
sha256sums_aarch64=('446239d53bc29421b6012c529b63af64cbe232d8f06afcd5b0a9f8f116ca11ef')

package() {
  cd "$srcdir/"

  install -Dm755 "${_pkgname}-${pkgver}-${CARCH}-linux" "${pkgdir}/usr/bin/${_pkgname}"

  install -Dm644 "LICENSE-${pkgver}" "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
  install -Dm644 "README-${pkgver}" "$pkgdir/usr/share/doc/$pkgname/README.md"
  install -Dm644 "CHANGELOG-${pkgver}" "$pkgdir/usr/share/doc/$pkgname/CHANGELOG.md"
  install -Dm644 "ZF-${pkgver}" "$pkgdir/usr/share/doc/$pkgname/ZF.md"

  install -Dm644 "MAN-${pkgver}.1" "${pkgdir}/usr/share/man/man1/${_pkgname}.1"
  gzip "${pkgdir}/usr/share/man/man1/${_pkgname}.1"

  install -Dm644 ${_pkgname}-${pkgver}.bash "${pkgdir}/usr/share/bash-completion/completions/${_pkgname}"
  install -Dm644 ${_pkgname}-${pkgver}.zsh "${pkgdir}/usr/share/zsh/site-functions/_${_pkgname}"
  install -Dm644 ${_pkgname}-${pkgver}.fish "${pkgdir}/usr/share/fish/completions/${_pkgname}.fish"
}