desktop/qsyncthingtray/PKGBUILD
2018-11-08 03:39:05 +01:00

35 lines
1002 B
Bash

# Arch contribution https://aur4.archlinux.org/packages/qsyncthingtray/
pkgname=qsyncthingtray
pkgver=0.5.8
pkgrel=1
pkgdesc="Tray app for syncthing"
arch=('x86_64')
url="https://github.com/sieren/QSyncthingTray"
license=('LGPL2.1')
depends=('qt5-webengine' 'qt5-webchannel' 'qt5-location' 'syncthing')
makedepends=('cmake')
source=("$pkgname-$pkgver.tar.gz::https://github.com/sieren/QSyncthingTray/archive/$pkgver.tar.gz"
"$pkgname.desktop")
sha1sums=('35da0f70359018050f47f349b578ac160ddfbd29'
'bfd5a49e55a34cf2f45641797a8acdd45122042d')
_pkgname=QSyncthingTray
build() {
cd "$_pkgname-$pkgver"
mkdir -p build
cd build
QTDIR=/usr/lib/qt5 cmake ..
make
}
package() {
cd "$_pkgname-$pkgver"
install -Dm755 "build/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
# install .desktop file
install -Dm755 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
install -Dm755 "resources/images/Icon1024.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
}