summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0ffaf9a9897c6722c72bd341f39e3672118e0fd0 (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
# Maintainer: Victor Tran <vicr12345 at gmail dot com>
pkgname=('thefile' 'libthefile')
pkgver=5.0
pkgrel=1
pkgdesc="File Manager"
arch=("x86_64" "aarch64")
url="https://github.com/theCheeseboard/thefile"
license=('GPL3')
makedepends=('git' 'qt6-tools' 'cmake' 'clang' 'quazip-qt6' 'libimobiledevice' 'libtdesktopenvironment' 'libthefrisbee')
source=("thefile-$pkgver"::"https://github.com/theCheeseboard/thefile/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('0a84231b8d85ee22f0bd2989ee290917bd3003b50d70558249e1838ce4cfd4a0')

doInstallModule() {
	DESTDIR="$pkgdir" cmake --install "build/$1"
}

build() {
	cmake -B build -S "thefile-$pkgver" \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package_thefile() {
    depends=('libimobiledevice' 'quazip-qt6' 'libthefile')

    doInstallModule 'application'
    doInstallModule 'plugins'
}

package_libthefile() {
    depends=('libtdesktopenvironment' 'libthefrisbee')

    doInstallModule 'libthefile'
}