# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=sdl_gfx
pkgver=2.0.28
pkgrel=1
pkgdesc="SDL graphics drawing primitives and other support functions"
url="https://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx/"
arch=(x86_64)
license=(LGPL)
depends=(sdl)
makedepends=(cmake)
source=(https://github.com/ferzkopp/SDL_gfx/archive/refs/tags/v$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('7ed950ae0a5be3be1610bdecaba2fd71c8413927f10e4da267df6d75ea4b35c6')

build() {
  cmake -B build -S SDL_gfx-$pkgver \
    -DCMAKE_INSTALL_PREFIX=/usr
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}
