blob: 9313f1b247c7bad76b6c2bf48c164c1a37ac5f0d (
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
|
# Maintainer: Joe Baldino <pedanticdm@gmx.us>
# Contributorr: Caltlgin Stsodaat <contact@fossdaily.xyz>
pkgname=nyble
pkgver=0.5.0
pkgrel=3
pkgdesc='A snake game for the terminal'
arch=('x86_64')
url='https://octobanana.com/software/nyble'
license=('MIT')
depends=('boost-libs' 'mpfr')
makedepends=('boost' 'cmake')
_patch='include-optional-in-lispp.diff'
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/octobanana/${pkgname}/archive/${pkgver}.tar.gz"
"${_patch}")
sha256sums=('c05b842fa7cae9def06e6916690e12be249ad584d195c3fdc1f56d44bb87a47e'
'SKIP')
prepare() {
cd "${pkgname}-${pkgver}"
patch -p1 -i "${srcdir}/${_patch}"
}
build() {
CFLAGS="${CFLAGS} -DNDEBUG" CXXFLAGS="${CXXFLAGS} -DNDEBUG" \
cmake -B build -S "${pkgname}-${pkgver}" \
-DCMAKE_SKIP_RPATH="TRUE" \
-DCMAKE_BUILD_TYPE="None" \
-DCMAKE_INSTALL_PREFIX="/usr" \
-Wno-dev
cmake --build build
}
package() {
DESTDIR="${pkgdir}" cmake --install build
install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" "${pkgname}-${pkgver}/"{README.md,doc/help.txt}
install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" "${pkgname}-${pkgver}/LICENSE"
}
|