archlinux-pkgbuilds/PKGBUILD

34 lines
736 B
Bash
Raw Normal View History

2018-08-09 01:10:05 +02:00
# Maintainer: Michael Herzberg <{firstname}@{firstinitial}{lastname}.de>
pkgname=moonlight-qt
pkgver=0.3.0
2018-08-09 01:10:05 +02:00
pkgrel=1
pkgdesc='GameStream client for PCs (Windows, Mac, and Linux)'
arch=('x86_64')
license=('GPL')
url='https://moonlight-stream.com'
depends=('qt5-base' 'qt5-quickcontrols' 'qt5-quickcontrols2')
optdepends=('libva-intel-driver: hardware acceleration for Intel GPUs')
source=($pkgname::"git+https://github.com/moonlight-stream/${pkgname}.git")
2018-08-09 01:10:05 +02:00
md5sums=('SKIP')
pkgver() {
2018-08-09 01:10:05 +02:00
cd "$pkgname"
git describe --long --tags | sed 's/^v//;s/-.*//'
2018-08-09 01:10:05 +02:00
}
build() {
cd "$pkgname"
git checkout v${pkgver}
git submodule update --init --recursive
2018-08-09 01:10:05 +02:00
qmake PREFIX="$pkgdir/usr"
make
}
package() {
cd "$pkgname"
make install
}