diff options
author | kleintux | 2021-08-02 16:50:35 +0200 |
---|---|---|
committer | kleintux | 2021-08-02 16:50:35 +0200 |
commit | e32258194c41fc6db84fb9e7c9fdee018a4106ac (patch) | |
tree | 5a432c0da5b0ae788537a4ba0f5e003f7fbc4234 | |
parent | 13e0192a8fcc1735f21e1726de00c5715c17b34a (diff) | |
download | aur-e32258194c41fc6db84fb9e7c9fdee018a4106ac.tar.gz |
added conflict and rebuild PKGBUILD
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 20 |
2 files changed, 14 insertions, 11 deletions
@@ -1,7 +1,7 @@ pkgbase = dungeonrush-git pkgdesc = A opensource game inspired by Snake with RPG elements, written in pure C with SDL pkgver = r123.2b45a05 - pkgrel = 1 + pkgrel = 2 url = https://github.com/Rapiz1/DungeonRush.git arch = x86_64 arch = aarch64 @@ -13,7 +13,8 @@ pkgbase = dungeonrush-git depends = sdl2_ttf depends = sdl2_net depends = sdl2_image + conflicts = dungeonrush source = dungeonrush::git+https://github.com/Rapiz1/DungeonRush.git - sha1sums = SKIP + sha256sums = SKIP pkgname = dungeonrush-git @@ -3,15 +3,16 @@ _pkgname=dungeonrush pkgname=${_pkgname}-git pkgver=r123.2b45a05 -pkgrel=1 +pkgrel=2 pkgdesc="A opensource game inspired by Snake with RPG elements, written in pure C with SDL" arch=('x86_64' 'aarch64') url="https://github.com/Rapiz1/DungeonRush.git" license=('MIT') depends=('sdl2' 'sdl2_mixer' 'sdl2_ttf' 'sdl2_net' 'sdl2_image') makedepends=('git' 'cmake') -source=("${pkgname%-*}::git+https://github.com/Rapiz1/DungeonRush.git") -sha1sums=('SKIP') +source=("${_pkgname}::git+${url}") +sha256sums=('SKIP') +conflicts=("${_pkgname}") pkgver() { cd "${_pkgname}" @@ -20,6 +21,7 @@ pkgver() { prepare() { sed -i "s#res/#/opt/${_pkgname}/res/#g" "${srcdir}/${_pkgname}/src/res.c" + sed -i "s#storage.dat#/opt/${_pkgname}/save/storage.dat#g" "${srcdir}/${_pkgname}/src/storage.h" } build() { @@ -29,10 +31,10 @@ build() { } package() { - install -D -m644 "${srcdir}/${_pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE" - mkdir -p "${pkgdir}/opt/${_pkgname}" - mkdir -p "${pkgdir}/usr/bin/" - ln -s "/opt/${_pkgname}/dungeon_rush" "${pkgdir}/usr/bin/${_pkgname}" - cp -r "${srcdir}/${_pkgname}/bin/res" "${pkgdir}/opt/${_pkgname}/" - cp -r "${srcdir}/${_pkgname}/bin/dungeon_rush" "${pkgdir}/opt/${_pkgname}/" + cd "${srcdir}/${_pkgname}" + install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE" + mkdir -p "${pkgdir}/opt/${_pkgname}/save" + chmod 777 "${pkgdir}/opt/${_pkgname}/save" + cp -r "bin/res" "${pkgdir}/opt/${_pkgname}/" + install -Dm755 "bin/dungeon_rush" "${pkgdir}/usr/bin/${_pkgname}" } |