fix: PKGBUILD and makefile and rename binary

This commit is contained in:
2026-05-24 10:09:47 +05:30
parent 744e12a926
commit d3c0a3e58e
5 changed files with 131 additions and 55 deletions

View File

@@ -1,24 +1,22 @@
pkgname=gsplash-git
pkgver=0.1.0
pkgrel=1
pkgdesc="A lightweight SDL2 splash screen wrapper for game launchers."
pkgdesc="A lightweight native SDL2 splash screen wrapper for game launchers."
arch=('x86_64')
depends=('sdl2' 'sdl2_image')
makedepends=('make' 'gcc' 'pkgconf')
source=('src/splash.c' 'Makefile')
sha256sums=('SKIP' 'SKIP')
prepare() {
mkdir -p "$srcdir/src"
cp "$srcdir/splash.c" "$srcdir/src/"
}
# Leave this empty so makepkg doesn't look for external downloads or local copies
source=()
sha256sums=()
build() {
cd "$srcdir"
# Point directly to your active project folder where the Makefile lives
cd "$startdir"
make
}
package() {
cd "$srcdir"
cd "$startdir"
make DESTDIR="$pkgdir" PREFIX="/usr" install
}
}