summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 45a7d1191b8aeb8726c0547ba47a941ad27ca6a2 (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
# Maintainer: Michael Beaumont <mjboamail@gmail.com>
# URL: https://github.com/michaelbeaumont/aur-packages
_pkgname=prototool
pkgname=${_pkgname}-bin
pkgdesc="Your Swiss Army Knife for Protocol Buffers"
pkgver=1.10.0
pkgrel=1
arch=(x86_64)
url="https://github.com/uber/prototool"
provides=("${_pkgname}=$pkgver")
conflicts=("${_pkgname}-git")
license=('MIT')
source=(
  "$_pkgname-$pkgver-$arch.tar.gz::https://github.com/uber/prototool/releases/download/v${pkgver}/prototool-Linux-$arch.tar.gz"
  "https://raw.githubusercontent.com/uber/prototool/v${pkgver}/LICENSE"
)
sha256sums=(
  50e53589b95e2435e26de01de8eac6af6ae6980b1cacf1e0ad319b7644f16b3b
  020d43a0acd998e8c1ce91f6ab7ba9fd505c9968dd6d5ce7c7ae9c749641a95e
)

package() {
    install -dm755 "$pkgdir/usr/share/bash-completion/completions/"
    install -dm755 "$pkgdir/usr/share/zsh/site-functions/"
    install -dm755 "$pkgdir/usr/share/man/man1/"
    install -dm755 "$pkgdir/usr/share/licenses/${pkgname}/"
    install -m644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/"
    install -dm755 "$pkgdir/usr/bin/"

    cd "$_pkgname"

    install -m755 bin/* -t "$pkgdir/usr/bin"

    install -m644 etc/bash_completion.d/* "$pkgdir/usr/share/bash-completion/completions"
    install -m644 etc/zsh/site-functions/* "$pkgdir/usr/share/zsh/site-functions"

    install -m644 share/man/man1/* "$pkgdir/usr/share/man/man1"
}