blob: b06e8aaab7867616d0a376ccfc482440c5a46389 (
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: haxibami <contact at haxibami dot net>
pkgname=typst-live-git
_pkgname=typst-live
pkgver=r33.4987e17
pkgrel=1
pkgdesc="A simple utility to watch for changes in your typst file and automatically recompile them"
arch=('any')
url="https://github.com/ItsEthra/typst-live"
license=("MIT")
makedepends=('git' 'cargo')
source=(
"git+${url}.git"
)
sha256sums=(
'SKIP'
)
pkgver() {
cd "${srcdir}/${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${srcdir}/${_pkgname}"
cargo fetch
}
build() {
cd "${srcdir}/${_pkgname}"
cargo build --release --locked
}
package() {
cd "${srcdir}/${_pkgname}"
install -Dm755 "./target/release/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|