blob: 1ed1873d8e8db6646d3ec74e461669716f9136df (
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
# Maintainer: Your Name <your@email.com>
pkgname=hyprfm-git
pkgver=r285.gbca92c8
pkgrel=1
pkgdesc="A lightweight Qt6/QML file manager for Hyprland"
arch=('x86_64' 'aarch64')
url="https://github.com/soyeb-jim285/hyprfm"
license=('MIT')
depends=(
'glib2'
'kwindowsystem'
'qt6-base'
'qt6-declarative'
'qt6-svg'
'qt6-wayland'
'fd'
'xdg-utils'
)
makedepends=(
'cmake'
'ninja'
'git'
'kwindowsystem'
'qt6-base'
'qt6-declarative'
'qt6-svg'
)
optdepends=(
'wl-clipboard: clipboard support via wl-copy and wl-paste'
'bat: syntax-highlighted text previews'
'gvfs: remote filesystem support via gio/gvfs (sftp, ftp, dav, etc.)'
'gvfs-smb: SMB/CIFS remote browsing support'
'ffmpeg: video thumbnails and audio/video metadata (via ffprobe)'
'poppler: PDF thumbnails, previews, and metadata (via pdftoppm/pdfinfo)'
'perl-image-exiftool: EXIF metadata for images (via exiftool)'
'udisks2: mount/unmount devices from sidebar'
)
provides=('hyprfm')
conflicts=('hyprfm')
source=(
"${pkgname}::git+https://github.com/soyeb-jim285/hyprfm.git"
"quill-icons::git+https://github.com/soyeb-jim285/quill-icons.git"
"quill::git+https://github.com/soyeb-jim285/quill.git"
)
sha256sums=('SKIP' 'SKIP' 'SKIP')
pkgver() {
cd "${pkgname}"
printf "r%s.g%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${pkgname}"
git submodule init
git config submodule.src/qml/icons.url "${srcdir}/quill-icons"
git config submodule.src/qml/Quill.url "${srcdir}/quill"
git -c protocol.file.allow=always submodule update
}
build() {
cmake -B build -S "${pkgname}" -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_TESTS=OFF \
-DHYPRFM_DATA_DIR=/usr/share/hyprfm
cmake --build build --parallel
}
package() {
# Install the compiled binary
install -Dm755 "build/src/hyprfm" "${pkgdir}/usr/bin/hyprfm"
# Install themes — loaded via applicationDirPath()/../themes → /usr/share/hyprfm/themes
install -dm755 "${pkgdir}/usr/share/hyprfm/themes"
install -Dm644 "${pkgname}/themes/"*.toml \
-t "${pkgdir}/usr/share/hyprfm/themes/"
# Install QML module metadata (needed for loadFromModule to find HyprFM)
install -Dm644 "build/src/HyprFM/qmldir" \
"${pkgdir}/usr/share/hyprfm/HyprFM/qmldir"
install -Dm644 "build/src/HyprFM/hyprfm.qmltypes" \
"${pkgdir}/usr/share/hyprfm/HyprFM/hyprfm.qmltypes" 2>/dev/null || true
# Install QML sources for Quill module
install -dm755 "${pkgdir}/usr/share/hyprfm/src"
cp -r "${pkgname}/src/qml" "${pkgdir}/usr/share/hyprfm/src/qml"
# Install desktop entry, icon and AppStream metainfo
install -Dm644 "${pkgname}/dist/io.github.soyeb_jim285.HyprFM.desktop" \
"${pkgdir}/usr/share/applications/io.github.soyeb_jim285.HyprFM.desktop"
install -Dm644 "${pkgname}/dist/io.github.soyeb_jim285.HyprFM.svg" \
"${pkgdir}/usr/share/icons/hicolor/scalable/apps/io.github.soyeb_jim285.HyprFM.svg"
install -Dm644 "${pkgname}/dist/io.github.soyeb_jim285.HyprFM.metainfo.xml" \
"${pkgdir}/usr/share/metainfo/io.github.soyeb_jim285.HyprFM.metainfo.xml"
# Install license
install -Dm644 "${pkgname}/LICENSE" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|