summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ec08babdd12aada33f9d50ed7d96370df697e525 (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
58
59
60
# Maintainer: Chih-Hsuan Yen <yan12125@gmail.com>
# Maintainer: txtsd <aur.archlinux@ihavea.quest>
# Contributor: Peter Mattern <pmattern at arcor dot de>

pkgname=libfm-qt-git
_pkgname=${pkgname%-git}
pkgver=2.1.0
pkgrel=1
pkgdesc='Qt port of libfm, a library providing components to build desktop file managers'
arch=(i686 x86_64)
url='https://lxqt-project.org'
license=('LGPL-2.1-only')
depends=(
  gcc-libs
  glib2
  glibc
  libexif
  libxcb
  lxqt-menu-data-git
  menu-cache
  qt6-base
)
makedepends=(
  cmake
  git
  lxqt-build-tools-git
  qt6-tools
)
optdepends=('gvfs: support for the trash bin and network devices')
provides=("${_pkgname}=${pkgver}")
conflicts=("${_pkgname}" 'pcmanfm-qt<=0.10.0')
source=('git+https://github.com/lxqt/libfm-qt.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

  # CMake installs empty folders unexpectedly
  # https://gitlab.kitware.com/cmake/cmake/issues/17122
  rmdir "${pkgdir}"/usr/include/libfm-qt6/{tests,translations}
}