mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
testing/sfml: new aport
https://www.sfml-dev.org/ Simple and Fast Multimedia Library
This commit is contained in:
parent
185f4032bf
commit
ce23ad24b5
1 changed files with 43 additions and 0 deletions
43
testing/sfml/APKBUILD
Normal file
43
testing/sfml/APKBUILD
Normal file
|
@ -0,0 +1,43 @@
|
|||
# Maintainer: Daniel Sabogal <dsabogalcc@gmail.com>
|
||||
pkgname=sfml
|
||||
pkgver=2.4.2
|
||||
pkgrel=0
|
||||
pkgdesc="Simple and Fast Multimedia Library"
|
||||
url="https://www.sfml-dev.org/"
|
||||
arch="all"
|
||||
license="zlib"
|
||||
depends=""
|
||||
makedepends="cmake doxygen eudev-dev flac-dev freetype-dev jpeg-dev
|
||||
mesa-dev libpng-dev libogg-dev libvorbis-dev libx11-dev
|
||||
libxrandr-dev libxcb-dev openal-soft-dev xcb-util-image zlib-dev"
|
||||
subpackages="$pkgname-dev:_dev $pkgname-doc"
|
||||
options="!check"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/SFML/SFML/archive/$pkgver.tar.gz"
|
||||
builddir="$srcdir/SFML-$pkgver"
|
||||
|
||||
build() {
|
||||
mkdir -p "$builddir"/build
|
||||
cd "$builddir"/build
|
||||
cmake .. \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DSFML_BUILD_DOC=TRUE \
|
||||
-DSFML_INSTALL_PKGCONFIG_FILES=TRUE
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
make DESTDIR="$pkgdir" -C "$builddir"/build install
|
||||
|
||||
mkdir -p "$pkgdir"/usr/share/doc
|
||||
mv "$pkgdir"/usr/share/SFML/doc "$pkgdir"/usr/share/doc/SFML
|
||||
}
|
||||
|
||||
_dev() {
|
||||
default_dev
|
||||
|
||||
mkdir -p "$subpkgdir"/usr/share
|
||||
mv "$pkgdir"/usr/share/SFML/cmake "$subpkgdir"/usr/share
|
||||
}
|
||||
|
||||
sha512sums="8acfdf320939c953a9a3413398f82d02d68a56a337f1366c2677c14ce032baa8ba059113ac3c91bb6e6fc22eef119369a265be7ef6894526e6a97a01f37e1972 sfml-2.4.2.tar.gz"
|
Loading…
Add table
Add a link
Reference in a new issue