Skip to content

Commit

Permalink
Merge pull request #6 from felipealfonsog/development
Browse files Browse the repository at this point in the history
Updates
  • Loading branch information
felipealfonsog authored Jun 18, 2024
2 parents bde1d84 + fa0ad92 commit fcfda2e
Showing 1 changed file with 32 additions and 10 deletions.
42 changes: 32 additions & 10 deletions src/AUR/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,24 +1,46 @@
# Maintainer: Felipe Alfonso Gonzalez <[email protected]>
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')
# 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 <<EOF > "$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
}

0 comments on commit fcfda2e

Please sign in to comment.