Files
SOM/PKGBUILD

42 lines
939 B
Bash

# 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"
}