diff options
author | juliustin | 2023-08-26 11:43:54 +0200 |
---|---|---|
committer | juliustin | 2023-08-26 11:55:17 +0200 |
commit | 2289658ca405e1614b7c84dd20cef0842da8ef39 (patch) | |
tree | 2b9903db1b9b667977b2e0b956401eba29bce142 | |
download | aur-2289658ca405e1614b7c84dd20cef0842da8ef39.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 40 |
3 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..aefb1654841c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = polylux2pdfpc-git + pkgdesc = pdfpc extractor for polylux, a package for creating slides in Typst + pkgver = r263.c0032a0 + pkgrel = 1 + url = https://github.com/andreasKroepelin/polylux + arch = x86_64 + license = MIT + makedepends = git + makedepends = cargo + source = git+https://github.com/andreasKroepelin/polylux.git + sha256sums = SKIP + +pkgname = polylux2pdfpc-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..018a3de08144 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!PKGBUILD +!.SRCINFO +!.gitignore diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7551722c8603 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# 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=() +makedepends=(git cargo) +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" +} + |