aboutsummaryrefslogtreecommitdiffstats
path: root/splashtool
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--splashtool/PKGBUILD30
-rw-r--r--splashtool/splashtool.install20
l---------splashtool/upload1
3 files changed, 51 insertions, 0 deletions
diff --git a/splashtool/PKGBUILD b/splashtool/PKGBUILD
new file mode 100644
index 0000000..83a2a8f
--- /dev/null
+++ b/splashtool/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Mattias Andrée <`base64 -d`(bWF0dGlhcy5hbmRyZWU)@protonmail.com>
+
+pkgname=splashtool
+pkgver=1428445153
+pkgrel=1
+pkgdesc="A simple tool for creating SYSLINUX splashes without fuss"
+url="https://github.com/GNU-Pony/splashtool"
+arch=(any)
+license=(AGPL3)
+depends=(gzip nafe kbd imagemagick bash awk grep sed coreutils glibc)
+makedepends=(make coreutils sed glibc gcc texinfo)
+install=splashtool.install
+source=("${url}/archive/${pkgver}.tar.gz")
+sha256sums=(a25957c5f20166f7590f9795e0736faf955bf5f583b3d7b299031259c68a36a9)
+
+_prefix=/usr
+
+
+build() {
+ cd "${srcdir}/splashtool-${pkgver}"
+ make
+}
+
+package() {
+ cd "${srcdir}/splashtool-${pkgver}"
+ make PREFIX="${_prefix}" PKGNAME="${pkgname}" DESTDIR="${pkgdir}" install
+ _dir="${pkgdir}${_prefix}/share/licenses/${pkgname}"
+ ln -sf -- "/usr/share/licenses/common/AGPL3" "${_dir}/LICENSE"
+}
+
diff --git a/splashtool/splashtool.install b/splashtool/splashtool.install
new file mode 100644
index 0000000..8bb5344
--- /dev/null
+++ b/splashtool/splashtool.install
@@ -0,0 +1,20 @@
+_file="splashtool"
+
+infodir="usr/share/info"
+file="${_file}.info.gz"
+
+
+post_install() {
+ [[ -x "usr/bin/install-info" ]] || return 0
+ install-info -- "${infodir}/${file}" "${infodir}/dir" 2> /dev/null
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+pre_remove() {
+ [[ -x "usr/bin/install-info" ]] || return 0
+ install-info --delete -- "${infodir}/${file}" "${infodir}/dir" 2> /dev/null
+}
+
diff --git a/splashtool/upload b/splashtool/upload
new file mode 120000
index 0000000..1e7a8be
--- /dev/null
+++ b/splashtool/upload
@@ -0,0 +1 @@
+../upload \ No newline at end of file