summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8ac54caa4c63019b9c8b2cead15b20bac32af02b (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
# Maintainer: Wenxuan <wenxuangm@gmail.com>
pkgname=code-minimap
pkgver=0.6.1
pkgrel=1
pkgdesc='A high performance code minimap render'
arch=(i686 x86_64)
url="https://github.com/wfxr/code-minimap"
license=('MIT' 'APACHE')
depends=()
makedepends=('rust' 'cargo')
conflicts=("${pkgname}-git" "${pkgname}-bin")

source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
md5sums=('1468b5877e9670d9ed02bbf7130d66be')

build() {
	cd "$srcdir/${pkgname}-${pkgver}"
	cargo build --release --locked
}

package() {
	cd "$srcdir/${pkgname}-${pkgver}"
	install -Dm755 "target/release/${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: