summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulian2020-03-23 14:25:52 +0100
committerJulian2020-03-23 14:25:52 +0100
commit9498fdbb3d6e17dc50e59e498a9db78d9e636888 (patch)
treeb8756cb29a8b13cb753088f1385013ddbea3d116
downloadaur-9498fdbb3d6e17dc50e59e498a9db78d9e636888.tar.gz
Add onedrive_tray
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD35
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..79723b34072
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = onedrive_tray-git
+ pkgdesc = OneDrive system tray program
+ pkgver = r14.90313c0
+ pkgrel = 1
+ url = https://github.com/DanielBorgesOliveira/onedrive_tray
+ arch = i686
+ arch = x86_64
+ license = unknown
+ makedepends = git
+ depends = qt5-base
+ provides = onedrive_tray=r14.90313c0
+ conflicts = onedrive_tray
+ source = git+https://github.com/DanielBorgesOliveira/onedrive_tray.git
+ md5sums = SKIP
+
+pkgname = onedrive_tray-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..bb7f5c22720
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: j.r <j.r@jugendhacker.de>
+_pkgname=onedrive_tray
+pkgname=$_pkgname-git
+pkgver=r14.90313c0
+pkgrel=1
+pkgdesc="OneDrive system tray program"
+arch=('i686' 'x86_64')
+url="https://github.com/DanielBorgesOliveira/onedrive_tray"
+license=('unknown')
+depends=('qt5-base')
+makedepends=('git') # 'bzr', 'git', 'mercurial' or 'subversion'
+provides=("onedrive_tray=$pkgver")
+conflicts=("onedrive_tray")
+source=('git+https://github.com/DanielBorgesOliveira/onedrive_tray.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$_pkgname"
+
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$_pkgname"
+ rm -rf build && mkdir -p build
+ cd build
+ qmake ../systray.pro
+ make
+}
+
+package() {
+ cd "$_pkgname"
+ mkdir -p "$pkgdir/usr/local/bin/"
+ cp build/systray "$pkgdir/usr/local/bin/onedrive_tray"
+}