summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbep2018-01-08 14:45:54 -0500
committerbep2018-01-08 14:46:29 -0500
commit5413e4414d3ae2e8d91044ce88ab027f858e258d (patch)
tree76e4325e7e407db3ea0c818600a113f850df2d26
downloadaur-5413e4414d3ae2e8d91044ce88ab027f858e258d.tar.gz
initial commit
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD39
-rw-r--r--ao.desktop10
-rw-r--r--ao.sh3
4 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4466da5a6b1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = ao-git
+ pkgdesc = An Electron wrapper for Microsoft Todo
+ pkgver = v5.2.0.r2.g94eac0c
+ pkgrel = 1
+ url = https://klauscfhq.github.io/ao/
+ arch = x86_64
+ license = MIT
+ makedepends = nodejs
+ makedepends = electron
+ makedepends = git
+ depends = nodejs
+ source = git+https://github.com/klauscfhq/ao.git
+ source = ao.desktop
+ source = ao.sh
+ sha256sums = SKIP
+ sha256sums = f0704b8b0a39cabacdc8a9294855f41923f9cd29d5607ceafb189dd7f6522c4b
+ sha256sums = e36cb7ed66e0c1f4f45be133d5b63ddad37687a8f5ae25889b88dc69ad4183be
+
+pkgname = ao-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7410bd52ed4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Paul Oppenheimer <redg3ar@airmail.cc>
+pkgname=ao-git
+_pkgname=ao
+pkgver=v5.2.0.r2.g94eac0c
+pkgrel=1
+pkgdesc="An Electron wrapper for Microsoft Todo"
+arch=('x86_64')
+url="https://klauscfhq.github.io/ao/"
+license=('MIT')
+groups=()
+depends=('nodejs')
+makedepends=('nodejs' 'electron' 'git')
+install=
+changelog=
+source=(
+ git+https://github.com/klauscfhq/$_pkgname.git
+ $_pkgname.desktop
+ $_pkgname.sh
+)
+sha256sums=('SKIP'
+ 'f0704b8b0a39cabacdc8a9294855f41923f9cd29d5607ceafb189dd7f6522c4b'
+ 'e36cb7ed66e0c1f4f45be133d5b63ddad37687a8f5ae25889b88dc69ad4183be')
+
+pkgver() {
+ cd "$_pkgname"
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+build() {
+ cd ao
+ npm install
+ npm run pack
+}
+package() {
+ install -D "${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
+ install -D "${srcdir}/ao/static/Icon.png" "${pkgdir}/usr/share/icons/hicolor/1024x1024/apps/${_pkgname}.png"
+ install -d "${pkgdir}/usr/share/${_pkgname}"
+ cp -r --preserve=mode $srcdir/ao/dist/linux-unpacked/* "${pkgdir}/usr/share/${_pkgname}/"
+ install -Dm=0755 "${_pkgname}.sh" "${pkgdir}/usr/bin/${_pkgname}"
+}
diff --git a/ao.desktop b/ao.desktop
new file mode 100644
index 00000000000..0e2fd2802b8
--- /dev/null
+++ b/ao.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=ao
+Comment=An Electron wrapper for Microsoft Todo
+GenericName=ao
+Exec=/usr/share/ao/ao-app %U
+Icon=/usr/share/ao/Icon.png
+Type=Application
+StartupNotify=true
+Categories=GNOME;GTK;Office;Calendar;
+
diff --git a/ao.sh b/ao.sh
new file mode 100644
index 00000000000..a1036dbb6bc
--- /dev/null
+++ b/ao.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+cd /usr/share/ao/
+./ao-app