refactor: reorganize PKGBUILD

This commit is contained in:
2026-05-27 12:40:17 +05:30
parent 1a0712c29a
commit 799229d3a3
3 changed files with 29 additions and 22 deletions

View File

@@ -1,22 +0,0 @@
pkgname=gsplash-git
pkgver=0.1.0
pkgrel=1
pkgdesc="A lightweight native SDL2 splash screen wrapper for game launchers."
arch=('x86_64')
license=('custom')
depends=('sdl2' 'sdl2_image' 'ffmpeg')
makedepends=('make' 'gcc' 'pkgconf')
# Leave this empty so makepkg doesn't look for external downloads or local copies
source=()
sha256sums=()
build() {
cd "$startdir"
make
}
package() {
cd "$startdir"
make DESTDIR="$pkgdir" PREFIX="/usr" install
}

View File

@@ -25,6 +25,7 @@ https://github.com/user-attachments/assets/22da49b4-0f1f-4208-8d0b-9eeef14e35e5
Arch Linux (PKGBUILD) for integrating with your system package manager:
```bash
cd packaging/arch
makepkg -si
```

28
packaging/arch/PKGBUILD Normal file
View File

@@ -0,0 +1,28 @@
pkgname=gsplash-git
pkgver=r23.1a0712c
pkgrel=1
pkgdesc="A lightweight native SDL2 splash screen wrapper for game launchers."
arch=('x86_64')
url="https://github.com/sortedcord/gsplash"
license=('GPL3')
depends=('sdl2' 'sdl2_image' 'ffmpeg')
makedepends=('make' 'git' 'pkgconf')
source=("git+https://github.com/sortedcord/gsplash.git")
sha256sums=('SKIP')
pkgver() {
cd "gsplash"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "gsplash"
make
}
package() {
cd "gsplash"
make DESTDIR="$pkgdir" PREFIX="/usr" install
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}