blob: c642b42c42ca75515dd09d236155557fd2e0ebb5 (
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
|
# Maintainer: Vitalii Kuzhdin <vitaliikuzhdin@gmail.com>
pkgname="tinytetris"
_commit="38d4cc33cd31fc30ac4599df793164b3ff3c3327"
pkgver="r11+g${_commit::7}"
pkgrel=2
pkgdesc="80x23 terminal tetris!"
arch=('x86_64')
url="https://github.com/taylorconor/${pkgname}"
license=('Apache-2.0')
depends=('glibc' 'ncurses')
_pkgsrc="${pkgname}-${_commit}"
source=("${_pkgsrc}.tar.gz::${url}/archive/${_commit}.tar.gz"
"${pkgname}_return_type.patch::${url}/pull/25.patch?full_index=1")
sha256sums=('8ca9c0fb02b003979e90a86eafc69ca51b78a773c3cda007da2be8ef185bf147'
'2fc8d21caddd474ba4ba12ffb074b891e7a2e6cee3015c788d1a01ce36269f30')
prepare() {
cd "${srcdir}/${_pkgsrc}"
patch -Np1 -i "${srcdir}/${pkgname}_return_type.patch"
}
build() {
cd "${srcdir}/${_pkgsrc}"
g++ ${CFLAGS} ${LDFLAGS} -o "${pkgname}" "${pkgname}.cpp" -lncurses -std=c++11
}
package() {
cd "${srcdir}/${_pkgsrc}"
install -vDm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
install -vDm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
install -vDm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|