diff --git a/src/AUR/PKGBUILD b/src/AUR/PKGBUILD index d3b7bcb..cd54a38 100644 --- a/src/AUR/PKGBUILD +++ b/src/AUR/PKGBUILD @@ -1,24 +1,46 @@ # Maintainer: Felipe Alfonso Gonzalez pkgname=profilex -pkgver=0.0.1 +pkgver=0.0.2 pkgrel=1 pkgdesc="ProFileX is a Linux file management tool with a Qt-based GUI." arch=('x86_64') url="https://github.com/felipealfonsog/ProFileX" -license=('BSD 3-clause') +license=('BSD') depends=('gcc' 'qt5-base') -source=("https://github.com/felipealfonsog/ProFileX/archive/refs/tags/v${pkgver}.tar.gz") +source=("https://github.com/felipealfonsog/ProFileX/archive/refs/tags/v.${pkgver}.tar.gz") + +sha256sums=('7192de2452e54a574ae811c14fbdb8f9babe068d6e75b247f0f64ecf78c30394') build() { - tar xf "v${pkgver}.tar.gz" -C "$srcdir" --strip-components=1 - cd "$srcdir" - gcc -o profilex src/main.c + cd "$srcdir/ProFileX-${pkgver}" + + # Run qmake to generate Makefile based on proFileX.pro + qmake proFileX.pro + + # Compile the project using make + make } package() { - cd "$srcdir" - install -Dm755 profilex "$pkgdir/usr/bin/profilex" -} + cd "$srcdir/ProFileX-${pkgver}" -sha256sums=('939e1524edda8773745c816514371d1dd5f70610654ec09c2cd72d0aeaa867eb') \ No newline at end of file + # Install the executable to the package directory + install -Dm755 build/proFileX "$pkgdir/usr/bin/proFileX" + + # Install license and README + install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md" + + # Create desktop entry + cat < "$pkgdir/usr/share/applications/proFileX.desktop" +[Desktop Entry] +Version=1.0 +Type=Application +Name=ProFileX +Comment=A Linux file management tool with a Qt-based GUI +Exec=proFileX +Icon=applications-utilities +Terminal=false +Categories=Utility; +EOF +}