mirror of
https://gitgud.io/Melon__Bread/Arch-Packages.git
synced 2024-11-24 16:28:31 -05:00
Added temp bcrawl pkg untill it gets fixed
This commit is contained in:
parent
87cb09145f
commit
977eb40002
80
bcrawl/PKGBUILD
Normal file
80
bcrawl/PKGBUILD
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
# Maintainer: Dmitry Kharitonov <arch[at]nano-model[dot]com>
|
||||||
|
|
||||||
|
pkgname=bcrawl
|
||||||
|
pkgver=1.35.4c
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc='Continuation of X-Crawl fork of Dungeon Crawl Stone Soup roguelike with new content'
|
||||||
|
arch=('i686' 'x86_64')
|
||||||
|
url='https://github.com/b-crawl/bcrawl'
|
||||||
|
depends=('lua51' 'sdl2_image' 'sqlite' 'glu' 'ttf-dejavu' 'freetype2')
|
||||||
|
makedepends=('flex' 'gendesk' 'mesa')
|
||||||
|
optdepends=('advancecomp: for recompressing the tilesheets'
|
||||||
|
'pngcrush: for recompressing the tilesheets')
|
||||||
|
conflicts=('crawl' 'stone-soup-tile' 'bcrawl-git')
|
||||||
|
provides=('bcrawl')
|
||||||
|
license=('GPL' 'BSD' 'MIT' 'ZLIB' 'APACHE' 'custom:CC0' 'custom')
|
||||||
|
source=("https://github.com/b-crawl/bcrawl/archive/bcrawl-${pkgver}.tar.gz")
|
||||||
|
sha256sums=('c4ae9112c1f25241fd1454222dc46ceb44c43cdf54a83090a5f7bfb8473614a6')
|
||||||
|
|
||||||
|
# used by gendesk to create .desktop file
|
||||||
|
_exec=('bcrawl-tiles')
|
||||||
|
_name=('Dungeon Crawl Stone Soup (bcrawl fork)')
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$srcdir"
|
||||||
|
gendesk -f -n --pkgname "$pkgname" --pkgdesc "$pkgdesc" \
|
||||||
|
--exec 'bcrawl-tiles' --name 'Dungeon Crawl Stone Soup (bcrawl fork)' PKGBUILD
|
||||||
|
|
||||||
|
cd "bcrawl-bcrawl-${pkgver}/crawl-ref/source"
|
||||||
|
|
||||||
|
# 0.16.0 weirdness
|
||||||
|
sed -i 's|SDL_main.h|SDL2/&|' main.cc
|
||||||
|
|
||||||
|
# git tarball weirdness
|
||||||
|
echo "$pkgver" > util/release_ver
|
||||||
|
|
||||||
|
# adjust makefile to use /usr/bin, owner root:root,
|
||||||
|
# disable setgid on executable
|
||||||
|
|
||||||
|
sed -i 's|bin_prefix := bin|bin_prefix := usr/bin|' Makefile
|
||||||
|
sed -i 's/INSTALL_UGRP := games:games/INSTALL_UGRP := root:root/' Makefile
|
||||||
|
sed -i 's|MCHMOD := 2755|MCHMOD := 755|' Makefile
|
||||||
|
|
||||||
|
# first build and install tiles version
|
||||||
|
|
||||||
|
make GAME=bcrawl \
|
||||||
|
DESTDIR="${pkgdir}" \
|
||||||
|
DATADIR="/usr/share/${pkgname}/data" \
|
||||||
|
SAVEDIR="~/.bcrawl" \
|
||||||
|
USE_UNICODE=y \
|
||||||
|
TILES=y \
|
||||||
|
install
|
||||||
|
|
||||||
|
# rename tiles executable to avoid clashing with console crawl
|
||||||
|
|
||||||
|
mv "${pkgdir}/usr/bin/bcrawl" "${pkgdir}/usr/bin/bcrawl-tiles"
|
||||||
|
|
||||||
|
# then build and install console version
|
||||||
|
|
||||||
|
make GAME=bcrawl \
|
||||||
|
DESTDIR="${pkgdir}" \
|
||||||
|
DATADIR="/usr/share/${pkgname}/data" \
|
||||||
|
SAVEDIR="~/.bcrawl" \
|
||||||
|
USE_UNICODE=y \
|
||||||
|
install
|
||||||
|
|
||||||
|
# install crawl license
|
||||||
|
|
||||||
|
install -D -m644 ../../LICENSE \
|
||||||
|
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||||
|
install -D -m644 ../docs/license/* \
|
||||||
|
"${pkgdir}/usr/share/licenses/${pkgname}"
|
||||||
|
|
||||||
|
# install icon and .desktop file
|
||||||
|
|
||||||
|
install -D -m644 dat/tiles/stone_soup_icon-32x32.png \
|
||||||
|
"${pkgdir}/usr/share/pixmaps/${pkgname}.png"
|
||||||
|
install -D -m644 "${srcdir}/${pkgname}.desktop" \
|
||||||
|
"${pkgdir}/usr/share/applications/${pkgname}.desktop"
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user