summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3df00854c9b599a1414018a00cf6de950a21b220 (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
# FOR THE NON-GIT VERSION (on which the git version is based):
#
# Contributor: Jaroslav Lichtblau <svetlemodry at archlinux dot org>
# Contributor: Brad Fanella <bradfanella at archlinux dot us>
# Contributor: Wittfella <wittfella at wittfella dot com>
# Maintainer: Stefan Husmann <stefan-husmann at t-online dot de>
#
# GIT VERSION
#
# Maintainer: BrainwreckedTech <bwtech at tuta dot io>

_pkgname=qtfm
pkgname=$_pkgname-git
pkgver=2022.11.01
pkgrel=1
pkgdesc="A lightweight file manager (git version)"
arch=('i686' 'x86_64')
url="https://github.com/rodlie/qtfm/releases"
license=('GPL')
#depends=('qt5-base' 'desktop-file-utils' 'ffmpeg' 'hicolor-icon-theme' 'imagemagick')
depends=('qt5-base' 'desktop-file-utils' 'hicolor-icon-theme' 'imagemagick')
provides=('qtfm')
conflicts=('qtfm')
source=('qtfm::git+https://github.com/rodlie/qtfm.git#branch=master')
sha256sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  git log -1 --format=%ci | sed 's/[ :-]/./g' | cut -d. -f1-3
}

#prepare() {
#  This is left here as a note in case a patch is ever needed again.
#  cd "${pkgname%-git}"
#  patch -Np1 < "$srcdir"/patch.patch
#}

build() {
  cd $_pkgname
  [[ -d build ]] || mkdir build
  cd build
# CONFIG+=with_ffmpeg is currently broken due to deprecations
  qmake CONFIG+=release CONFIG+=with_magick PREFIX=/usr ..
  make
}

package() {
  cd $_pkgname/build
  make INSTALL_ROOT="$pkgdir" install
}