summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 23ca7bce47cb1199cae4e770ea5d265b59e9adc9 (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
# Maintainer: Chih-Hsuan Yen <yan12125@gmail.com>
# Maintainer: txtsd <aur.archlinux@ihavea.quest>
# Maintainer: Peter Mattern <pmattern at arcor dot de>
# Contributor: Jerome Leclanche <jerome@leclan.ch>

pkgname=pcmanfm-qt-git
_pkgname="${pkgname%-git}"
pkgver=2.1.0
pkgrel=2
pkgdesc='The LXQt file manager, Qt port of PCManFM'
arch=(i686 x86_64)
url='https://lxqt-project.org'
license=('GPL-2.0-only')
depends=(
  gcc-libs
  glib2
  glibc
  hicolor-icon-theme
  layer-shell-qt
  libfm-qt-git
  libxcb
  lxqt-menu-data-git
  qt6-base
)
makedepends=(
  cmake
  git
  lxqt-build-tools-git
  qt6-tools
)
provides=("${_pkgname}=${pkgver}")
conflicts=("${_pkgname}")
source=("git+https://github.com/lxqt/${_pkgname}.git")
sha256sums=('SKIP')

pkgver() {
  cd "${_pkgname}"

  git describe --always | sed "s/-/.r/;s/-/./"
}

build() {
  cd "${_pkgname}"

  cmake -S . -B build \
    -DCMAKE_BUILD_TYPE='None' \
    -DCMAKE_INSTALL_PREFIX='/usr' \
    -DCMAKE_INSTALL_LIBDIR='lib' \
    -Wno-dev
  cmake --build build
}

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