-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from felipealfonsog/development
Updates
- Loading branch information
Showing
1 changed file
with
32 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |