Add a basic pkgbuild file and desktop file

This commit is contained in:
2025-11-21 03:42:41 +00:00
parent b735e80fe5
commit 3560a92086
2 changed files with 49 additions and 0 deletions

41
PKGBUILD Normal file
View File

@@ -0,0 +1,41 @@
# Maintainer: Your Name <youremail@example.com>
pkgname=som
pkgver=1.0.0
pkgrel=1
pkgdesc="My Qt6 C++ CMake application"
arch=('x86_64')
url="https://example.com"
license=('GPL')
depends=('qt6-base') # add other dependencies your app needs
makedepends=('cmake' 'gcc' 'make' 'qt6-base')
source=()
build() {
cd ..
mkdir build
cd build
# Run CMake
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
echo $PWD
cd ../build
echo $PWD
# Install the app binary
install -Dm755 out/som "$pkgdir/usr/bin/som"
# Install plugins
install -d "$pkgdir/usr/lib/som"
cp -r out/plugins/* "$pkgdir/usr/lib/som/"
# Install the .desktop file
install -Dm644 ../som.desktop "$pkgdir/usr/share/applications/som.desktop"
# Optionally, install an icon if you have one
# install -Dm644 ../myapp.png "$pkgdir/usr/share/icons/hicolor/128x128/apps/myapp.png"
}

8
som.desktop Normal file
View File

@@ -0,0 +1,8 @@
[Desktop Entry]
Name=SOM
Comment=Description of My Qt6 App
Exec=/usr/bin/som
Icon=myapp
Terminal=false
Type=Application
Categories=Utility;Development;