desktop/qsyncthingtray/PKGBUILD

37 lines
1022 B
Bash
Raw Normal View History

2016-02-26 21:45:20 +08:00
# Arch contribution https://aur4.archlinux.org/packages/qsyncthingtray/
pkgname=qsyncthingtray
2016-05-28 01:19:43 +08:00
pkgver=0.5.0
2016-02-26 21:45:20 +08:00
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')
install=$pkgname.install
source=("$pkgname-$pkgver.tar.gz::https://github.com/sieren/QSyncthingTray/archive/$pkgver.tar.gz"
"$pkgname.desktop")
2016-05-28 01:19:43 +08:00
sha1sums=('9657502aecc90fcf9e9340510300bac63d14369e'
2016-02-26 21:45:20 +08:00
'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 "src/images/Icon1024.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
}