summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c21a65f9b2baeb7907d5164489da4e4d35e0766e (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
45
46
47
48
49
# Maintainer: Felix Barz <skycoder42.de@gmx.de>
pkgname=anirem-git
pkgver=2.0.1
pkgrel=1
pkgdesc="A tool to passivly check for updates on seasons, for proxer.me"
arch=('i686' 'x86_64')
url="https://github.com/Skycoder42/AniRem"
license=('BSD')
depends=('qt5-base' 'qt5-datasync' 'qt5-mvvmwidgets' 'qt5-restclient>=2.0.0' 'qt5-mvvmdatasyncwidgets' 'qt5-svg')
makedepends=('qt5-tools' 'git' 'qpmx-qpmsource')
optdepends=("repkg: Automatically rebuild the package on dependency updates")
provides=('seasonproxer' 'anirem')
conflicts=('seasonproxer' 'anirem')
_pkgfqn=$pkgname-$pkgver
source=("$_pkgfqn::git+https://github.com/Skycoder42/AniRem.git#tag=$pkgver"
		"$pkgname.rule"
		"manual://proxer-api-key.h")
DLAGENTS+=('manual::/usr/bin/echo The proxer API key must be provided externally. Check the README.md on upstream to see how to get/handle that file; exit 1;')
sha256sums=('SKIP'
            '545f8b65bab4cd044f3cef353d0be2ac02420288a32950f35515eed5fe4ac033'
            'SKIP')

prepare() {
  mkdir -p build

  cd "$_pkgfqn"
  echo "INSTALL_HEADERS = /usr/include" > install.pri
  echo "CONFIG += no_quick" >> install.pri
  ln -s ../proxer-api-key.h
}

build() {
  cd build

  qmake "../$_pkgfqn/"
  make qmake_all
  make
  make lrelease
}

package() {
  cd build
  make INSTALL_ROOT="$pkgdir" install
  ln -s Ani-Rem "$pkgdir/usr/bin/anirem"

  # license
  cd "../$_pkgfqn"
  install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}