summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4d01ebdb25b15b61615a6c899fd50e29e89ce2ff (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
# Maintainer: Chih-Hsuan Yen <base64_decode("eWFuMTIxMjUgQVQgYXJjaGxpbnV4IERPVCBvcmc=")>
# Co-Maintainer: Peter Mattern <pmattern at arcor dot de>

_pkgname=qtxdg-tools
pkgname=$_pkgname-git
pkgver=4.0.0
pkgrel=1
pkgdesc="User tools for libqtxdg"
arch=("x86_64")
url="https://lxqt-project.org"
license=("LGPL-2.1-only")
depends=('libqtxdg-git')
makedepends=('git' 'cmake' 'lxqt-build-tools-git')
provides=("$_pkgname=$pkgver")
conflicts=("$_pkgname")
source=("git+https://github.com/lxqt/$_pkgname.git")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  git describe --always | sed "s/-/.r/;s/-/./"
}

build() {
  cmake -B build -S "$srcdir/$_pkgname" \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}