commit 31f0ec76414af3da18ab7b988070b00a686bc88f Author: Adrian Date: Tue Jan 6 21:31:29 2026 -0500 Initial files for initial release diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000000000..bf9b7c17f346f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = custom-toolbox + pkgdesc = A customizable toolbox application built with Qt + pkgver = 26.01 + pkgrel = 1 + url = https://github.com/MX-Linux/custom-toolbox + arch = x86_64 + license = GPL3 + makedepends = cmake + makedepends = ninja + makedepends = qt6-tools + depends = qt6-base + provides = custom-toolbox + conflicts = custom-toolbox + source = https://github.com/MX-Linux/custom-toolbox/archive/refs/tags/26.01.tar.gz + sha256sums = 742bd70fa8c51001e0dc16ebbcd5b92d261f7cc523fbbf5ad5551313e7f374cf + +pkgname = custom-toolbox diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000000000..15019df92b325 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,64 @@ +# Maintainer: Adrian +pkgname=custom-toolbox +pkgver=26.01 +pkgrel=1 +pkgdesc="A customizable toolbox application built with Qt" +arch=('x86_64') +url="https://github.com/MX-Linux/custom-toolbox" +license=('GPL3') +depends=('qt6-base') +provides=('custom-toolbox') +conflicts=('custom-toolbox') +makedepends=('cmake' 'ninja' 'qt6-tools') +source=("https://github.com/MX-Linux/custom-toolbox/archive/refs/tags/26.01.tar.gz") +sha256sums=('742bd70fa8c51001e0dc16ebbcd5b92d261f7cc523fbbf5ad5551313e7f374cf') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + # Get version from pkgver (strip any extra pkgver info for CMake) + _version="${pkgver}" + + # Configure with CMake, passing version override + cmake -G Ninja \ + -B build \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ + -DPROJECT_VERSION_OVERRIDE="$_version" + + # Build + cmake --build build --parallel +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + # Install binary + install -Dm755 build/custom-toolbox "${pkgdir}/usr/bin/custom-toolbox" + + # Install translations + install -dm755 "${pkgdir}/usr/share/custom-toolbox/locale" + install -Dm644 build/*.qm "${pkgdir}/usr/share/custom-toolbox/locale/" 2>/dev/null || true + + # Install config files + install -dm755 "${pkgdir}/etc/custom-toolbox" + install -Dm644 custom-toolbox.conf "${pkgdir}/etc/custom-toolbox/custom-toolbox.conf" + install -Dm644 example.list "${pkgdir}/etc/custom-toolbox/example.list" + + # Install desktop file + install -Dm644 custom-toolbox.desktop "${pkgdir}/usr/share/applications/custom-toolbox.desktop" + + # Install icons + install -Dm644 icons/custom-toolbox.svg "${pkgdir}/usr/share/pixmaps/custom-toolbox.svg" + install -Dm644 icons/custom-toolbox.svg "${pkgdir}/usr/share/icons/hicolor/scalable/apps/custom-toolbox.svg" + + # Install documentation + install -dm755 "${pkgdir}/usr/share/doc/custom-toolbox" + if [ -d help ]; then + cp -r help/ "${pkgdir}/usr/share/doc/custom-toolbox/" 2>/dev/null || true + fi + + # Install changelog + gzip -c debian/changelog > "${pkgdir}/usr/share/doc/custom-toolbox/changelog.gz" +} \ No newline at end of file