summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorstef2042015-07-03 16:22:47 +0200
committerstef2042015-07-03 16:22:47 +0200
commitad3fbf303a31bcf73f0dd722cb65b69ce91e7ed2 (patch)
tree4ec1825be71e4882a8b622ac19e9efeaa4510b80
downloadaur-ad3fbf303a31bcf73f0dd722cb65b69ce91e7ed2.tar.gz
Initial import
-rw-r--r--.SRCINFO22
-rwxr-xr-xPKGBUILD32
-rwxr-xr-xptask.install12
-rw-r--r--task-2.4.1-1.patch13
4 files changed, 79 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..abaeb9ded24
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = ptask
+ pkgdesc = A GTK+ graphical user interface for managing tasks in taskwarrior
+ pkgver = 0.0.9
+ pkgrel = 3
+ url = http://wpitchoune.net/ptask
+ install = ptask.install
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ depends = task
+ depends = json-c
+ depends = gtk3
+ depends = hicolor-icon-theme
+ optdepends = asciidoc: required to generate html version of NEWS and README
+ optdepends = help2man: required to regenerate manpages automatically
+ source = http://wpitchoune.net/ptask/files/ptask-0.0.9.tar.gz
+ source = task-2.4.1-1.patch
+ sha256sums = 24df60301bd7e94ab56187f8fcd11e64c6589a72b95970ff880069ca200fc9e8
+ sha256sums = 80ec8f7e11fff4de6ce69160dccc588ec2f5244ed30632c32f8fe8a1a93050a0
+
+pkgname = ptask
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100755
index 00000000000..166ed9534ec
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: stef204 <stef204 AT [*] (where[*]=yandex DOT com)>
+
+pkgname=ptask
+pkgver=0.0.9
+pkgrel=3
+pkgdesc="A GTK+ graphical user interface for managing tasks in taskwarrior"
+arch=('i686' 'x86_64')
+url="http://wpitchoune.net/ptask"
+license=('GPL2')
+depends=('task' 'json-c' 'gtk3' 'hicolor-icon-theme')
+optdepends=('asciidoc: required to generate html version of NEWS and README'
+ 'help2man: required to regenerate manpages automatically')
+install=$pkgname.install
+source=("http://wpitchoune.net/ptask/files/$pkgname-$pkgver.tar.gz" "task-2.4.1-1.patch")
+sha256sums=('24df60301bd7e94ab56187f8fcd11e64c6589a72b95970ff880069ca200fc9e8'
+ '80ec8f7e11fff4de6ce69160dccc588ec2f5244ed30632c32f8fe8a1a93050a0')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ patch -p2 < $srcdir/task-2.4.1-1.patch
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ ./configure --prefix=/usr --sysconfdir=/usr/share
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
+}
diff --git a/ptask.install b/ptask.install
new file mode 100755
index 00000000000..0880e5acf6f
--- /dev/null
+++ b/ptask.install
@@ -0,0 +1,12 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+ glib-compile-schemas /usr/share/glib-2.0/schemas
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
diff --git a/task-2.4.1-1.patch b/task-2.4.1-1.patch
new file mode 100644
index 00000000000..ff2b2cb919a
--- /dev/null
+++ b/task-2.4.1-1.patch
@@ -0,0 +1,13 @@
+--- ../ptask-0.0.9/src/tw.c 2014-10-10 13:04:35.000000000 +0200
++++ ../ptask-0.0.9-patched/src/tw.c 2015-02-18 15:07:45.850462451 +0100
+@@ -109,8 +109,8 @@
+ log_debug("task version: %s", ver);
+
+ if (!strcmp(ver, "2.2.0")
+- || !strcmp(ver, "2.0.0")
+- || !strcmp(ver, "2.3.0"))
++ || !strcmp(ver, "2.3.0")
++ || !strcmp(ver, "2.4.1-1"))
+ return 1;
+ else
+ return 0;