# Maintainer: Sol Bekic <s+aur at s-ol dot nu>

_rockname=texture-share-vk
pkgbase=lua-$_rockname
pkgname=("lua51-$_rockname")
pkgver=0.2.0
_rockrel=1
pkgrel=1
pkgdesc='A LÖVE library for sharing GPU textures between processes'
arch=(x86_64)
url="https://git.s-ol.nu/lua-texture-share-vk/-/"
license=(MIT)
depends=()
makedepends=(lua
             lua51
             lua52
             lua53
             luarocks)
source=("git+https://git.s-ol.nu/lua-$_rockname.git#tag=v$pkgver")
sha256sums=('41d5e62361d47bc7866c600b6828e8055f55a018f61e3c7d45f4a4f645af7907')

package() {
	cd "$srcdir/lua-$_rockname"
	luarocks --lua-version="5.1" --tree="$pkgdir/usr/" \
		make --deps-mode=none --no-manifest "$_rockname-$pkgver-$_rockrel.rockspec"
}
