diff options
Diffstat (limited to 'tex-fmt')
-rw-r--r-- | tex-fmt/.SRCINFO | 12 | ||||
-rw-r--r-- | tex-fmt/PKGBUILD | 37 |
2 files changed, 49 insertions, 0 deletions
diff --git a/tex-fmt/.SRCINFO b/tex-fmt/.SRCINFO new file mode 100644 index 0000000..55bc7cc --- /dev/null +++ b/tex-fmt/.SRCINFO | |||
@@ -0,0 +1,12 @@ | |||
1 | pkgbase = tex-fmt | ||
2 | pkgdesc = An extremely fast LaTeX formatter written in Rust | ||
3 | pkgver = 0.4.6 | ||
4 | pkgrel = 1 | ||
5 | url = https://github.com/WGUNDERWOOD/tex-fmt | ||
6 | arch = x86_64 | ||
7 | license = MIT | ||
8 | makedepends = cargo | ||
9 | source = tex-fmt-0.4.6.tar.gz::https://github.com/WGUNDERWOOD/tex-fmt/archive/refs/tags/v0.4.6.tar.gz | ||
10 | sha256sums = 2b7c7f6759007fa0671b9e324b089f5fd70fe6ffdb63388152681217db44b2ae | ||
11 | |||
12 | pkgname = tex-fmt | ||
diff --git a/tex-fmt/PKGBUILD b/tex-fmt/PKGBUILD new file mode 100644 index 0000000..181fe11 --- /dev/null +++ b/tex-fmt/PKGBUILD | |||
@@ -0,0 +1,37 @@ | |||
1 | # Maintainer: Yigit Sever <yigit at yigitsever dot com> | ||
2 | |||
3 | pkgname=tex-fmt | ||
4 | pkgver=0.4.6 | ||
5 | pkgrel=1 | ||
6 | pkgdesc="An extremely fast LaTeX formatter written in Rust" | ||
7 | arch=('x86_64') | ||
8 | url="https://github.com/WGUNDERWOOD/tex-fmt" | ||
9 | license=('MIT') | ||
10 | makedepends=(cargo) | ||
11 | source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz") | ||
12 | sha256sums=('2b7c7f6759007fa0671b9e324b089f5fd70fe6ffdb63388152681217db44b2ae') | ||
13 | |||
14 | prepare() { | ||
15 | cd "$srcdir/$pkgname-$pkgver" | ||
16 | export RUSTUP_TOOLCHAIN=stable | ||
17 | cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" | ||
18 | } | ||
19 | |||
20 | build() { | ||
21 | cd "$srcdir/$pkgname-$pkgver" | ||
22 | export RUSTUP_TOOLCHAIN=stable | ||
23 | export CARGO_TARGET_DIR=target | ||
24 | cargo build --frozen --release --all-features | ||
25 | } | ||
26 | |||
27 | check() { | ||
28 | cd "$srcdir/$pkgname-$pkgver" | ||
29 | export RUSTUP_TOOLCHAIN=stable | ||
30 | cargo test --frozen --all-features | ||
31 | } | ||
32 | |||
33 | package() { | ||
34 | cd "$srcdir/$pkgname-$pkgver" | ||
35 | install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname" | ||
36 | install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" | ||
37 | } | ||