add: Build Archlinux

This commit is contained in:
CharOfString
2026-10-10 18:40:39 -05:00
parent 09945e156a
commit d8c5ea88e0
6 changed files with 421 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
# PKGBUILD for testing purpose.
pkgname=gxde-example
pkgver=0
pkgrel=1
pkgdesc="GXDE example component"
arch=('x86_64' 'aarch64')
url="https://github.com/GXDE-OS/${pkgname}"
license=('GPL-3.0-or-later')
depends=('qt5-base')
makedepends=('git' 'cmake' 'qt5-tools')
source=()
sha256sums=()
_srcdir() {
git -C "$startdir" rev-parse --show-toplevel
}
pkgver() {
head -n 1 "$(_srcdir)/debian/changelog" | sed -E 's/.*\(([^)]*)\).*/\1/; s/^[0-9]+://; s/-/./g'
}
build() {
cmake -B build -S "$(_srcdir)" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}