summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD30
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a3ba1025e3b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = todo.c++
+ pkgdesc = A lightweight, by directory, todo-list utility
+ pkgver = 20170921
+ pkgrel = 1
+ url = http://git.ache.one/todo
+ arch = any
+ license = GPL3
+ makedepends = git
+ conflicts = todo.c
+ conflicts = todo
+ conflicts = todo.c++
+ source = todo.c++::git+http://git.ache.one/todo
+ md5sums = SKIP
+
+pkgname = todo.c++
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..73feb54c556
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: ache <ache@ache.one>
+
+pkgname=todo.c++
+pkgver=20170921
+pkgrel=1
+pkgdesc="A lightweight, by directory, todo-list utility"
+arch=("any")
+url="http://git.ache.one/todo"
+license=('GPL3')
+makedepends=('git')
+conflicts=('todo.c' 'todo' 'todo.c++')
+source=("todo.c++::git+http://git.ache.one/todo")
+
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+ git log -1 --format='%cd' --date=short | tr -d -- '-'
+}
+
+build() {
+ cd "$srcdir/$pkgname"
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+ install -Dm755 "todo" "$pkgdir/usr/bin/todo"
+ install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/todo.cpp/LICENSE"
+}