Skip to content

Commit

Permalink
Add PKGBUILD file
Browse files Browse the repository at this point in the history
  • Loading branch information
InfinitePain committed May 28, 2023
1 parent d2622f9 commit 9ed4c90
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Installers/arch_linux/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
pkgname=Snake-by-InfinitePain
pkgver=1.2.0
pkgrel=1
pkgdesc="A simple snake game written in C"
arch=('x86_64')
url="https://github.com/InfinitePain/Snake-by-InfinitePain"
license=('Apache')
depends=('glibc' 'ncurses')
makedepends=('cmake' 'ninja')
source=("REPLACE_WITH_ACTUAL_URL")
sha256sums=('REPLACE_WITH_ACTUAL_SHA256SUM')

build() {
tar -xzf "v${pkgver}.tar.gz"
cd "${pkgname}-${pkgver}"
cmake \
-B "build" \
-S "." \
-G Ninja \
-DCMAKE_BUILD_TYPE='None' \
-DCMAKE_INSTALL_PREFIX:PATH='/usr' \
-Wno-dev
cmake --build "build" --verbose
}

package() {
cd "${pkgname}-${pkgver}"
DESTDIR="${pkgdir}" cmake --install "build"
install -D -m644 "LICENSE.txt" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}

0 comments on commit 9ed4c90

Please sign in to comment.