summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 403d5b1bba59a9e54e392b1c60f98b9b4a2fa3c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Maintainer: j.r <j.r@jugendhacker.de>
# Contributor: Adrián Insaurralde <adrianinsaval at gmail dot com>

_pkgname=onedrive_tray
pkgname=$_pkgname-git
pkgver=r28.6883538
pkgrel=1
pkgdesc="OneDrive system tray program"
arch=('i686' 'x86_64')
url="https://github.com/DanielBorgesOliveira/onedrive_tray"
license=('unknown')
depends=('qt5-base' 'onedrive')
makedepends=('git') # 'bzr', 'git', 'mercurial' or 'subversion'
provides=("onedrive_tray=$pkgver")
conflicts=("onedrive_tray")
source=('git+https://github.com/DanielBorgesOliveira/onedrive_tray.git'
	'0001-Fix-binary-location-to-usr-bin.patch')
md5sums=('SKIP'
         'dad2a29aa7d4eacb4ee9dad0bfaa8eb5')

pkgver() {
	cd "$_pkgname"

	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare () {
	cd "$_pkgname"

	patch -p1 -i "$srcdir/0001-Fix-binary-location-to-usr-bin.patch"
}

build() {
	cd "$_pkgname"
	rm -rf build && mkdir -p build
	cd build
	qmake ../systray.pro
	make
}

package() {
	cd "$_pkgname/build"
	make INSTALL_ROOT="${pkgdir}" install
}