blob: 35e7e2a8586e12296849f054aa4caa9e9d9206cb (
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
|
# Maintainer: Alexandre Bury <alexandre.bury@gmail.com>
pkgname=csfml-git
pkgver=2.5.1.r4.g980a165
pkgrel=1
pkgdesc='C bindings for sfml'
arch=('i686' 'x86_64')
url='https://www.sfml-dev.org/'
license=('custom:zlib')
depends=('sfml-git')
makedepends=('git' 'cmake' 'doxygen' 'ninja')
conflicts=('csfml')
provides=('csfml')
source=('csfml-git::git+https://github.com/SFML/CSFML.git')
md5sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}
build() {
cd "$pkgname"
cmake . \
-Bbuild \
-GNinja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCSFML_BUILD_DOC=true
ninja -C build
ninja -C build doc
}
package() {
cd "$pkgname"
DESTDIR="$pkgdir/" ninja -C build install
install -Dm644 license.md ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
|