mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 04:54:38 +08:00
30 lines
879 B
Bash
30 lines
879 B
Bash
pkgname=sdl2_net
|
|
pkgver=2.0.1
|
|
pkgrel=1
|
|
pkgdesc="A small sample cross-platform networking library (Version 2)"
|
|
arch=('x86_64')
|
|
url="http://www.libsdl.org/projects/SDL_net"
|
|
license=('MIT')
|
|
depends=(sdl2)
|
|
source=("$url/release/SDL2_net-${pkgver}.tar.gz"
|
|
"FindSDL2_net.cmake")
|
|
sha256sums=('15ce8a7e5a23dafe8177c8df6e6c79b6749a03fff1e8196742d3571657609d21'
|
|
'f46df983e7cdd920529cc76433b24805bc68a0d67340bdcca2769d71ff2379cb')
|
|
|
|
build() {
|
|
cd "${srcdir}/SDL2_net-${pkgver}/"
|
|
|
|
./configure --disable-static --prefix=/usr
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/SDL2_net-${pkgver}/"
|
|
make DESTDIR="${pkgdir}/" install
|
|
install -Dm644 COPYING.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
|
|
# we can remove the following when provided directly by cmake
|
|
install -Dm644 $srcdir/FindSDL2_net.cmake ${pkgdir}/usr/share/cmake-3.0/Modules/FindSDL2_net.cmake
|
|
}
|
|
|