diff options
author | csculley | 2017-12-30 12:06:10 -0600 |
---|---|---|
committer | csculley | 2017-12-30 12:59:54 -0600 |
commit | d05cfefa2dd8f2b9bc1db1cb441eade6cad8da1e (patch) | |
tree | d933b6635e7b5eaa83e711cad0c447693c8f029c | |
download | aur-d05cfefa2dd8f2b9bc1db1cb441eade6cad8da1e.tar.gz |
Initial 1.0 commit
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4fa88ff1fbfa --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = sleepplan-git + pkgdesc = Calculate times to wake up based on bedtimes, and vice versa. + pkgver = r16.4fe2ec9 + pkgrel = 1 + url = https://github.com/csculley/sleepplan + arch = any + license = GPL3 + makedepends = git + provides = sleepplan + conflicts = sleepplan + source = sleepplan::git+https://github.com/csculley/sleepplan.git#branch=master + md5sums = SKIP + +pkgname = sleepplan-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..77b167205869 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Christopher Sculley <cs.sculley@gmail.com> +pkgname=sleepplan-git +pkgver=r16.4fe2ec9 +pkgrel=1 +pkgdesc="Calculate times to wake up based on bedtimes, and vice versa." +arch=('any') +license=('GPL3') +url="https://github.com/csculley/sleepplan" +makedepends=('git') +provides=('sleepplan') +conflicts=('sleepplan') +source=('sleepplan::git+https://github.com/csculley/sleepplan.git#branch=master') +md5sums=('SKIP') + +pkgver() { + mv sleepplan "$pkgname" + cd "$pkgname" + ( set -o pipefail + git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +package() { + cd "$pkgname" + mkdir -p "$pkgdir"/usr/bin + mv sleepplan.py sleepplan + chmod +x sleepplan + cp sleepplan "$pkgdir"/usr/bin +} |