summaryrefslogtreecommitdiffstats
path: root/tex-fmt
diff options
context:
space:
mode:
authorYigit Sever2024-08-31 11:01:50 +0200
committerYigit Sever2024-08-31 11:01:50 +0200
commit4f1f72d2096e6152b7062a5c30ea2b196d984d50 (patch)
treea36afb50b5cdb48b4edc5739077e358463d101ec /tex-fmt
parentf4b5ab75a5eab546d789e2be491b00f37fd8bbdb (diff)
parentc7f53e0db960468be692ccd365051a22b2c4e30f (diff)
downloadpackages-4f1f72d2096e6152b7062a5c30ea2b196d984d50.tar.gz
packages-4f1f72d2096e6152b7062a5c30ea2b196d984d50.tar.bz2
packages-4f1f72d2096e6152b7062a5c30ea2b196d984d50.zip
Add 'tex-fmt/' from commit 'c7f53e0db960468be692ccd365051a22b2c4e30f'
git-subtree-dir: tex-fmt git-subtree-mainline: f4b5ab75a5eab546d789e2be491b00f37fd8bbdb git-subtree-split: c7f53e0db960468be692ccd365051a22b2c4e30f
Diffstat (limited to 'tex-fmt')
-rw-r--r--tex-fmt/.SRCINFO12
-rw-r--r--tex-fmt/PKGBUILD37
2 files changed, 49 insertions, 0 deletions
diff --git a/tex-fmt/.SRCINFO b/tex-fmt/.SRCINFO
new file mode 100644
index 0000000..51057dc
--- /dev/null
+++ b/tex-fmt/.SRCINFO
@@ -0,0 +1,12 @@
1pkgbase = tex-fmt
2 pkgdesc = An extremely fast LaTeX formatter written in Rust
3 pkgver = 0.3.1
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.3.1.tar.gz::https://github.com/WGUNDERWOOD/tex-fmt/archive/refs/tags/v0.3.1.tar.gz
10 sha256sums = deb0187747311ec1c4b6a6f6b40168ee494b9819d3fb37501de61479ba5d8a79
11
12pkgname = tex-fmt
diff --git a/tex-fmt/PKGBUILD b/tex-fmt/PKGBUILD
new file mode 100644
index 0000000..e7413df
--- /dev/null
+++ b/tex-fmt/PKGBUILD
@@ -0,0 +1,37 @@
1# Maintainer: Yigit Sever <yigit at yigitsever dot com>
2
3pkgname=tex-fmt
4pkgver=0.3.1
5pkgrel=1
6pkgdesc="An extremely fast LaTeX formatter written in Rust"
7arch=('x86_64')
8url="https://github.com/WGUNDERWOOD/tex-fmt"
9license=('MIT')
10makedepends=(cargo)
11source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
12sha256sums=('deb0187747311ec1c4b6a6f6b40168ee494b9819d3fb37501de61479ba5d8a79')
13
14prepare() {
15 cd "$srcdir/$pkgname-$pkgver"
16 export RUSTUP_TOOLCHAIN=stable
17 cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
18}
19
20build() {
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
27check() {
28 cd "$srcdir/$pkgname-$pkgver"
29 export RUSTUP_TOOLCHAIN=stable
30 cargo test --frozen --all-features
31}
32
33package() {
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}