blob: 2240b3a6e335c3d0876361bbc9361f0e6ed2fb8c (
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
39
40
41
|
# Maintainer: Julius Freudenberger <contact@jfreudenberger.de>
_pkgname=polylux2pdfpc
pkgname="$_pkgname-git"
_reponame=polylux
_dirname=pdfpc-extractor
pkgver=r263.c0032a0
pkgrel=1
pkgdesc='pdfpc extractor for polylux, a package for creating slides in Typst'
arch=(x86_64)
url='https://github.com/andreasKroepelin/polylux'
license=(MIT)
depends=(typst)
makedepends=(git cargo)
optdepends=('pdfpc: Present the generated speaker notes using the presenter console')
source=("git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_reponame"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --manifest-path "$_reponame/$_dirname/Cargo.toml" --target "$CARCH-unknown-linux-gnu"
}
build() {
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --locked --frozen --manifest-path "$_reponame/$_dirname/Cargo.toml" --release
}
package() {
install -Dm755 "$_reponame/$_dirname/target/release/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
# Package licenses
install -Dm644 "$_reponame/LICENSE" "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
}
|