blob: c8679f61930691d7d02fc90e92e4dc3988f08874 (
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
|
# Maintainer: <reg-archlinux AT klein DOT tuxli DOT ch>
# Contributor: Caltlgin Stsodaat <contact@fossdaily.xyz>
pkgname='floatybox'
pkgver=0.1.0
pkgrel=2
pkgdesc='Float your way through perilous terrain in this endless side-scoller game'
arch=('x86_64')
url='https://octobanana.com/software/floatybox'
_url_source='https://github.com/octobanana/floatybox'
license=('MIT')
depends=('boost-libs')
makedepends=('boost' 'cmake')
source=("${pkgname}-${pkgver}.tar.gz::${_url_source}/archive/${pkgver}.tar.gz"
"patch1.diff"
"patch2.diff")
sha256sums=('1949018c82ab3a5ee66c474c850614133f52c134ed04aa133d4841d46ccc4718'
'19ae5f96af26537f87db7fb21f62a98979a2a1356ae9434f599ade0ae7aaec14'
'cb8034c84ddbdbe80ff49395fda10d540227ae7d5c31469393ab63d11828fdeb')
prepare() {
cd "${pkgname}-${pkgver}/src/app/"
patch <${startdir}/patch1.diff
patch <${startdir}/patch2.diff
}
build() {
export CFLAGS+=" ${CPPFLAGS}"
export CXXFLAGS+=" ${CPPFLAGS}"
cmake -B 'build' -S "${pkgname}-${pkgver}" \
-DCMAKE_BUILD_TYPE='None' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-Wno-dev
make -C 'build'
}
package() {
install -Dvm755 "build/${pkgname}" -t "${pkgdir}/usr/bin"
install -Dvm644 "${pkgname}-${pkgver}/"{'README.md','doc/help.txt'} -t "${pkgdir}/usr/share/doc/${pkgname}"
install -Dvm644 "${pkgname}-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
# vim: ts=2 sw=2 et:
|