summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 83280b1e4ee6476a4238853558068500146f3908 (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
# Maintainer: The3DmaN <the3dman dot appdev at protonmail dot com>

pkgname=media-server-connect-git
pkgver=r122.45769f8
pkgrel=1
pkgdesc="App for connecting to Emby server web interface"
arch=("any")
url="https://gitlab.com/The3DmaN/${pkgname%-git}"
license=("GPL3")
makedepends=("git")
depends=("qt5-svg" "qt5-base" "qt5-webengine" "qt5-webview" "qt5-wayland" "qt5-quickcontrols2")
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+https://gitlab.com/The3DmaN/${pkgname%-git}.git")
md5sums=("SKIP")

build()
{
cd "$srcdir/${pkgname%-git}"
# and make qt gui
  qmake-qt5 USE_QRCODE=1 USE_UPNP=1
  make

}

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

package()
{
  cd "$srcdir/${pkgname%-git}"
  install -Dm644 mediaserverconnect.desktop "$pkgdir"/usr/share/applications/mediaserverconnect.desktop
  install -Dm644 images/media-server-connect.svg "$pkgdir"/usr/share/icons/hicolor/scalable/apps/media-server-connect.svg
  install -Dm755 media-server-connect "$pkgdir"/usr/bin/media-server-connect

}