summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD44
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..873e968847aa
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,12 @@
+pkgbase = ppm2pwg-git
+ pkgdesc = Misc printing format conversion utilities: ppm2pwg, pwg2ppm, pdf2printable, baselinify, ippposter
+ pkgver = r225.32960d3
+ pkgrel = 1
+ url = https://github.com/attah/ppm2pwg
+ arch = x86_64
+ license = GPL-3.0
+ makedepends = git
+ source = git+https://github.com/attah/ppm2pwg.git
+ sha512sums = SKIP
+
+pkgname = ppm2pwg-git
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
+}