summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fd3e81db60674b25eab6ee8e05b5d690e0394705 (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
50
51
52
53
54
55
56
57
# Maintainer: Felix Barz <skycoder42.de@gmx.de>
pkgname=remind-me
pkgver=2.1.0
pkgrel=1
pkgdesc="A simple reminder application for desktop and mobile, with synchronized reminders"
arch=('i686' 'x86_64')
url="https://github.com/Skycoder42/RemindMe"
license=('BSD')
depends=('qt5-base' 'qt5-svg' 'qt5-datasync' 'qt5-mvvmwidgets' 'qt5-mvvmdatasyncwidgets')
makedepends=('qt5-tools' 'git' 'qpmx-qpmsource' 'qt5-mvvmdatasyncquick')
optdepends=("knotifications: Adds support for KDE notifications, which are more advanced (recompile required)"
			"repkg: Automatically rebuild the package on dependency updates")
_pkgfqn=$pkgname-$pkgver
source=("$_pkgfqn::git+https://github.com/Skycoder42/RemindMe.git#tag=$pkgver"
		"$pkgname.rule")
sha256sums=('SKIP'
            'c75adc9b16dae39669540352813516e698673a5f2f53034ad3b133c5cab701f3')

prepare() {
  mkdir -p build

  cd "$_pkgfqn"
  #echo "INSTALL_HEADERS = /usr/include" >> .qmake.conf
  echo "INSTALL_HEADERS = /usr/include" > install.pri
}

build() {
  cd build

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

package() {
  cd build
  cd RemindMeLib
  make INSTALL_ROOT="$pkgdir" install
  cd ../daemons/RemindMeDesktopDaemon
  make INSTALL_ROOT="$pkgdir" install
  cd ../../gui/RemindMeCore
  make INSTALL_ROOT="$pkgdir" install
  cd ../RemindMeWidgets
  make INSTALL_ROOT="$pkgdir" install
  cd ../..

  # license
  cd "../$_pkgfqn"
  install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  
  # fix icon names
  icodir="$pkgdir/usr/share/icons/hicolor/scalable/apps"
  rm "$icodir/remind-me.svg"
  install -D -m644 "icon/remindme.svg" "$icodir/remind-me.svg"
  install -D -m644 "icon/remindme-error.svg" "$icodir/remind-me-error.svg"
}