aboutsummaryrefslogtreecommitdiffstats
path: root/ponyguests
diff options
context:
space:
mode:
Diffstat (limited to 'ponyguests')
-rw-r--r--ponyguests/PKGBUILD30
-rw-r--r--ponyguests/ponyguests.install20
l---------ponyguests/upload1
3 files changed, 51 insertions, 0 deletions
diff --git a/ponyguests/PKGBUILD b/ponyguests/PKGBUILD
new file mode 100644
index 0000000..682bdca
--- /dev/null
+++ b/ponyguests/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Mattias Andrée <m@`base64 -d`(bWFhbmRyZWU).se>
+
+pkgname=ponyguests
+pkgver=1428445099
+pkgrel=1
+pkgdesc="Login wrapper to enable guest accounts"
+url="https://github.com/GNU-Pony/ponyguests"
+arch=(i686 x86_64)
+license=(GPL3)
+depends=(sh coreutils grep sed bc shadow 'linux>=3.4' glibc)
+makedepends=(make coreutils 'linux-api-headers>=3.4' glibc gcc sed texinfo)
+install=ponyguests.install
+source=("${url}/archive/${pkgver}.tar.gz")
+sha256sums=(95105124ca7e4839f62e61352cddf416fe6aad761dc9558bef775787d7d863ce)
+
+build() {
+ cd "${srcdir}/ponyguests-${pkgver}"
+
+ make PKGNAME="${pkgname}"
+}
+
+package() {
+ cd "${srcdir}/ponyguests-${pkgver}"
+
+ make PKGNAME="${pkgname}" DESTDIR="${pkgdir}" install
+
+ _dir="${pkgdir}/usr/share/licenses/${pkgname}"
+ ln -sf -- "/usr/share/licenses/common/GPL3" "${_dir}/LICENSE"
+}
+
diff --git a/ponyguests/ponyguests.install b/ponyguests/ponyguests.install
new file mode 100644
index 0000000..e2a45d7
--- /dev/null
+++ b/ponyguests/ponyguests.install
@@ -0,0 +1,20 @@
+_file="ponyguests"
+
+infodir="usr/share/info"
+file="${_file}.info"
+
+
+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/ponyguests/upload b/ponyguests/upload
new file mode 120000
index 0000000..1e7a8be
--- /dev/null
+++ b/ponyguests/upload
@@ -0,0 +1 @@
+../upload \ No newline at end of file