diff options
author | Asger Hautop Drewsen | 2023-12-21 13:58:29 +0100 |
---|---|---|
committer | Asger Hautop Drewsen | 2023-12-21 13:58:29 +0100 |
commit | 8679d4b1c3a3cf5597d6a6c8a9efca8b5fb522f1 (patch) | |
tree | 18115d1165a7106986459bd7811f1d0b12e6b475 /PKGBUILD | |
download | aur-ppm2pwg-git.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3b87916fdba8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Asger Hautop Drewsen <asger@tyilo.com> + +pkgname=ppm2pwg-git +pkgver=r225.32960d3 +pkgrel=1 +pkgdesc="Misc printing format conversion utilities: ppm2pwg, pwg2ppm, pdf2printable, baselinify, ippposter" +arch=("x86_64") +url="https://github.com/attah/ppm2pwg" +license=('GPL-3.0') +source=("git+https://github.com/attah/ppm2pwg.git") +sha512sums=('SKIP') +makedepends=('git') + +prepare() { + cd "${srcdir}/ppm2pwg" + pwd + git submodule update --init --recursive +} + +pkgver() { + cd "ppm2pwg" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)" +} + +build() { + cd "${srcdir}/ppm2pwg" + make +} + +package() { + cd "${srcdir}/ppm2pwg" + + utils=( + ppm2pwg + pwg2ppm + pdf2printable + baselinify + ippposter + ) + + for util in "${utils[@]}"; do + install -D -m755 "$util" "${pkgdir}/usr/bin/$util" + done +} |