summarylogtreecommitdiffstats
path: root/PKGBUILD.tmpl
blob: ed827bde516bbc61519733b2d1f08ad7e98dc14e (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
# Maintainer: {{MAINTAINER}}
_pkgname={{BINNAME}}
pkgname={{PKGNAME}}
pkgver={{PKGVER}}
pkgrel={{PKGREL}}
pkgdesc='{{PKGDESC}}'
arch=(i686 x86_64)
url='https://github.com/{{USER}}/{{REPO}}'
license=("MIT" "APACHE")
makedepends=('rust' 'cargo')
conflicts={{CONFLICTS}}
provides={{PROVIDES}}

source=("${_pkgname}-v${pkgver}.tar.gz::${url}/releases/download/v${pkgver}/${_pkgname}-v${pkgver}-x86_64-unknown-linux-gnu.tar.gz")
md5sums=('{{MD5SUM}}')

package() {
	cd "${srcdir}/${_pkgname}-v${pkgver}-x86_64-unknown-linux-gnu"
	install -Dm755 "${_pkgname}"                       "$pkgdir/usr/bin/${_pkgname}"
	install -Dm644 "completions/fish/${_pkgname}.fish" "$pkgdir/usr/share/fish/vendor_completions.d/${_pkgname}.fish"
	install -Dm644 "completions/zsh/_${_pkgname}"      "$pkgdir/usr/share/zsh/site-functions/_${_pkgname}"
	install -Dm644 "README.md"                         "$pkgdir/usr/share/doc/${_pkgname}/README.md"
	install -Dm644 "LICENSE-MIT"                       "$pkgdir/usr/share/licenses/${_pkgname}/LICENSE-MIT"
	install -Dm644 "LICENSE-APACHE"                    "$pkgdir/usr/share/licenses/${_pkgname}/LICENSE-APACHE"
}

# vim:set noet sts=0 sw=4 ts=4 ft=PKGBUILD: