makedeb


powder-toy 96.2.350-1


Desktop version of the classic falling sand physics sandbox, simulates air pressure, velocity & heat!

Click here to go back to the commit logs for powder-toy.

Commit:


Hash: 3e5a814f8d3f25f7ca886d3e92aafb65aff76e1b

Message: Migrate for MakeDeb

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 8f2dcd2..c950863 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,3 +1,5 @@
+generated-by = makedeb-makepkg
+
 pkgbase = powder-toy
 	pkgdesc = Desktop version of the classic falling sand physics sandbox, simulates air pressure, velocity & heat!
 	pkgver = 96.2.350
@@ -8,14 +10,18 @@ pkgbase = powder-toy
 	arch = i686
 	license = GPL3
 	makedepends = meson
-	makedepends = ninja
-	makedepends = libicns
-	depends = glibc
-	depends = libx11
-	depends = sdl2
+	makedepends = ninja-build
+	makedepends = libsdl2-dev
+	makedepends = libluajit-5.1-dev
+	makedepends = libcurl4-openssl-dev
+	makedepends = zlib1g-dev
+	makedepends = icnsutils
+	depends = libc6
+	depends = libx11-6
+	depends = libsdl2-2.0-0
 	depends = luajit
-	depends = fftw
-	depends = zlib
+	depends = fftw2
+	depends = zlib1g
 	depends = curl
 	depends = hicolor-icon-theme
 	source = powder-toy-96.2.350.tar.gz::https://github.com/The-Powder-Toy/The-Powder-Toy/archive/refs/tags/v96.2.350.tar.gz
diff --git a/.gitignore b/.gitignore
index 84863c5..5642f77 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,5 @@
 /src/
 /pkg/
 /powder-toy-*.pkg.tar.*
-
+/powder-toy_*.deb
 /powder-toy-*.tar.gz
diff --git a/PKGBUILD b/PKGBUILD
index 5e36a97..fa86874 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,21 +1,29 @@
-# Maintainer:	Dmytro Meleshko	<qzlgeb.zryrfuxb@tznvy.pbz(rot13)>
+# Maintainer:	Misha	<mishakmak@gmail.com>
+# Contributor:	Dmytro Meleshko	<qzlgeb.zryrfuxb@tznvy.pbz(rot13)>
 # Contributor:	farseerfc	<farseerfc@archlinuxcn.org>
 # Contributor:	refujee		<gmail.com: refujee>
 # Contributor:	sausageandeggs	<archlinux.us: sausageandeggs>
 # Contributor:	Jesse Jaara	<gmail.com: jesse.jaara>
+# Based on <https://aur.archlinux.org/packages/powder-toy/>
 # Mesonification is based on <https://aur.archlinux.org/cgit/aur.git/commit/PKGBUILD?h=powder-toy-git&id=65c5f88eb2df75df77c4da139859232d7d94f2c0>
 
 # Select version of Lua. Possible values are luajit, lua51, lua52 and an empty
 # string to disable Lua support. luajit is used in the official builds.
 _lua=luajit
 
+case "$_lua" in
+  luajit) _lua_dev=libluajit-5.1-dev ;;
+  lua51) _lua_dev=liblua5.1-dev ;;
+  lua52) _lua_dev=liblua5.2-dev ;;
+esac
+
 pkgname=powder-toy
 pkgver=96.2.350
 pkgrel=1
 pkgdesc="Desktop version of the classic falling sand physics sandbox, simulates air pressure, velocity & heat!"
 arch=(x86_64 i686)
-depends=('glibc' 'libx11' 'sdl2' "$_lua" 'fftw' 'zlib' 'curl' 'hicolor-icon-theme')
-makedepends=('meson' 'ninja' 'libicns')
+depends=('libc6' 'libx11-6' 'libsdl2-2.0-0' "$_lua" 'fftw2' 'zlib1g' 'curl' 'hicolor-icon-theme')
+makedepends=('meson' 'ninja-build' 'libsdl2-dev' "$_lua_dev" 'libcurl4-openssl-dev' 'zlib1g-dev' 'icnsutils')
 url="https://powdertoy.co.uk/"
 license=('GPL3')
 install="${pkgname}.install"
@@ -60,7 +68,7 @@ build() {
   esac
 
   msg2 "building ${pkgname} with the following extra flags: ${extra_flags[*]}"
-  arch-meson --buildtype=release build "${extra_flags[@]}"
+  meson --prefix=/usr --buildtype=release build "${extra_flags[@]}"
   meson compile -C build
 }