xcursor-viewer/PKGBUILD

64 lines
2 KiB
Text
Raw Permalink Normal View History

2025-11-10 23:43:17 +01:00
# Maintainer: Christian Schendel <doppelhelix@gmail.com>
# Contributor: Tom Hu <tom@bluespice.org>
pkgname=xcursor-viewer
pkgver=20260105
2025-11-10 23:43:17 +01:00
pkgrel=1
pkgdesc="Preview Xcursor files"
arch=(
x86_64
)
url="https://github.com/drizt/xcursor-viewer"
license=(
GPL-3.0-or-later
)
depends=(
glibc
gcc-libs
hicolor-icon-theme
2025-11-10 23:43:17 +01:00
qt6-base)
makedepends=(
git
cmake
)
conflicts=("${pkgname}-git")
_commit="216ed3b6b4694f75fc424862874dc5e2b66fb685"
2025-11-10 23:43:17 +01:00
source=(
"${pkgname}::git+${url}.git#commit=${_commit}"
"qt6.patch"
"io.github.drizt.xcursor_viewer.desktop"
"io.github.drizt.xcursor_viewer.metainfo.xml"
"xcursor-viewer.svg"
)
b2sums=('b14e10e00bcf5e8d71fd7ae2f7ee7cbd329605b730c796084f74ff1d4527b5c792f0eee50492e771da9677c607cccedd6e1c9f3ba0a8e03d1b616716328d1015'
'f988e298b38f47f456a98fb411e426557cdfa11f7a3774fb024b548199c5e8b4e3ef5e4829f96ae41706b3ea749e546b1cd478ce151630d5f02cc5f49e0991d6'
2025-11-10 23:43:17 +01:00
'ba3d4aabbdd713a8df1615ccf2026445b39d2b5ad7e1781bbe23e7014ea9d94304ea22017eef8b313a706c86f01b4717ebc0108e67aae9822965ad3346c34c5b'
'905522667221ece4a52159d50aca8fb45c1fd47f17bd544b9eb7af41bb891f4e79ca5c3dd6e3e54e820e95e8c19a85f5d083dfa38d41e6fea9a770e5bb125da4'
'7bb57d0c85f1300ae216404d7eb7978bf42f9353e8105eda20c4f278bbfa509c724b075500d3bdb23a6848051fa33edd84122ba2ae57aab3861bef9f8c076b1e')
prepare() {
patch -d ${pkgname} -Np1 -i ../qt6.patch
}
build() {
local cmake_options=(
-S "${pkgname}"
-B build
-D CMAKE_INSTALL_PREFIX=/usr
)
cmake "${cmake_options[@]}"
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
cd ${pkgname}
install -Dm0644 ../io.github.drizt.xcursor_viewer.desktop \
"$pkgdir/usr/share/applications/io.github.drizt.xcursor_viewer.desktop"
install -Dm0644 ../xcursor-viewer.svg \
"$pkgdir/usr/share/icons/hicolor/scalable/apps/xcursor-viewer.svg"
install -Dm644 ../io.github.drizt.xcursor_viewer.metainfo.xml \
"${pkgdir}/usr/share/metainfo/io.github.drizt.xcursor_viewer.metainfo.xml"
}