summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée2015-11-10 02:44:01 +0100
committerMattias Andrée2015-11-10 02:44:01 +0100
commitc6d0eb64f651629a7d21078926d90d52cbc556de (patch)
tree02a9da1ca95f30212807cd99dca4705614eb38c1
downloadaur-c6d0eb64f651629a7d21078926d90d52cbc556de.tar.gz
Initial import, version 1
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD26
-rw-r--r--sleep-until.install20
3 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c4fa260b18b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = sleep-until
+ pkgdesc = Sleep until a specified time
+ pkgver = 1
+ pkgrel = 1
+ url = https://github.com/maandree/sleep-until
+ install = sleep-until.install
+ arch = any
+ license = AGPL3
+ makedepends = glibc>=2.8
+ makedepends = gcc
+ makedepends = general-preprocessor
+ makedepends = grep
+ makedepends = texinfo
+ makedepends = auto-auto-complete
+ depends = linux>=2.6.25
+ depends = glibc>=2.8
+ source = https://github.com/maandree/sleep-until/archive/1.tar.gz
+ sha256sums = fa1776be3f29c550f6eff48bcf714c76fcf399f1c7bac1d7306c5abc7fe14e17
+
+pkgname = sleep-until
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b6149d73a55
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,26 @@
+# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org>
+
+pkgname=sleep-until
+pkgver=1
+pkgrel=1
+pkgdesc='Sleep until a specified time'
+arch=('any')
+url='https://github.com/maandree/sleep-until'
+license=('AGPL3')
+depends=('linux>=2.6.25' 'glibc>=2.8')
+makedepends=('glibc>=2.8' 'gcc' 'general-preprocessor' 'grep' 'texinfo' 'auto-auto-complete')
+install=sleep-until.install
+source=(https://github.com/maandree/sleep-until/archive/$pkgver.tar.gz)
+sha256sums=(fa1776be3f29c550f6eff48bcf714c76fcf399f1c7bac1d7306c5abc7fe14e17)
+
+
+build() {
+ cd "$srcdir/sleep-until-$pkgver"
+ make command info shell
+}
+
+package() {
+ cd "$srcdir/sleep-until-$pkgver"
+ make DESTDIR="$pkgdir" install-base install-info install-man install-shell
+}
+
diff --git a/sleep-until.install b/sleep-until.install
new file mode 100644
index 00000000000..83a91442cbe
--- /dev/null
+++ b/sleep-until.install
@@ -0,0 +1,20 @@
+_file="sleep-until"
+
+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
+}
+