blob: 3c48ea8242bc7dec9025a45c6922591b55fc2317 (
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={{PKGVER}}
pkgrel={{PKGREL}}
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=('{{MD5SUM}}')
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:
|