refactor: reorganize PKGBUILD
This commit is contained in:
28
packaging/arch/PKGBUILD
Normal file
28
packaging/arch/PKGBUILD
Normal 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"
|
||||
}
|
||||
Reference in New Issue
Block a user