summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e4a6379f4f0fe3c2112fc977927e99e17ec2001a (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

pkgname=libaccounts-qt-git
pkgdesc='Qt-based client library for accessing the online accounts database'
pkgver=1.16
pkgrel=3
arch=(x86_64)
url='https://gitlab.com/accounts-sso/libaccounts-qt'
license=(LGPL)
depends=(libaccounts-glib qt6-base)
makedepends=(doxygen)
conflicts=(libaccounts-qt)
provides=(libaccounts-qt)
replaces=(libaccounts-qt)
source=(git+https://gitlab.com/accounts-sso/libaccounts-qt.git)
sha256sums=('SKIP')

prepare() {
  cd "${pkgname%-git}"
  sed -i 's|SUBDIRS  += Accounts tests|SUBDIRS += Accounts|' accounts-qt.pro
}

build() {
  cd "${pkgname%-git}"
  qmake PREFIX=/usr LIBDIR=/usr/lib
  make
}

package() {
  cd "${pkgname%-git}"
  make INSTALL_ROOT="$pkgdir" install

# Remove docs
  rm -r "$pkgdir"/usr/share
}