blob: a6e08e9cd5805bfa96ef89b01135f8aa878e630f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Maintainer: kleintux <reg-archlinux AT klein DOT tuxli DOT ch>
pkgname=boom
_buildpkgname=lifish
pkgver=1.8.1
pkgrel=1
pkgdesc="A game inspired by Factor Software's BOOM.Bomberman meets DOOM."
arch=('x86_64' 'aarch64')
url="https://silverweed.github.io/lifish/"
license=('custom')
makedepends=('cmake')
depends=('sfml')
provides=(${pkgname})
source=(
"https://github.com/silverweed/lifish/archive/refs/tags/${pkgver}.tar.gz"
"${pkgname}"
"${pkgname}.desktop"
)
sha256sums=('e20e2a014d4cb83a8532f762a9f439dee12f521be1e2ca435136a014107807fe'
'efc02b4b2da6f08fd392236b6e3b1b30d0a1e4b30a68b80eee6e5be40cfb2c11'
'80349740c8b281d2110524e38f8cd774e31616ced4ea6fc894b516a7772c474f')
build() {
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109418
# -Werror=maybe-uninitialized has false positives, including in gcc libs, so we disable it here.
export LDFLAGS=${LDFLAGS/-Wl,-z,pack-relative-relocs}
# gold linker is used in LTO=1 builds, but it doesn't support `-z pack-relative-relocs` flag.
# https://rfc.archlinux.page/0023-pack-relative-relocs/
# https://gitlab.archlinux.org/archlinux/packaging/packages/pacman/-/issues/21
export CXXFLAGS="$CXXFLAGS -Wno-error=maybe-uninitialized"
cd "${srcdir}/${_buildpkgname}-${pkgver}"
cmake -DRELEASE=true .
make
}
package() {
install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
cd "${srcdir}/${_buildpkgname}-${pkgver}"
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -DTm755 "${_buildpkgname}" "${pkgdir}/usr/share/${pkgname}/${pkgname}"
cp -r "assets" "${pkgdir}/usr/share/${pkgname}/"
chmod 644 "${pkgdir}/usr/share/${pkgname}/assets/graphics/"*
install -Dm644 "${startdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
}
|