summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2022-04-17 16:48:50 +0300
committereug-vs <eugene@eug-vs.xyz>2022-04-17 16:48:50 +0300
commit88beb58cdd09b5d0180d62699ca238f303a8c646 (patch)
treeff9628e8433ebe62f68a5753b8033657244c67ee
parent477fe94c22410f69ff83369bf740fe07cbb125bf (diff)
downloadebuild-repository-88beb58cdd09b5d0180d62699ca238f303a8c646.tar.gz
feat: add raylib ebuild
-rw-r--r--media-libs/raylib/Manifest1
-rw-r--r--media-libs/raylib/raylib-4.0.0.ebuild24
2 files changed, 25 insertions, 0 deletions
diff --git a/media-libs/raylib/Manifest b/media-libs/raylib/Manifest
new file mode 100644
index 0000000..2f04fc4
--- /dev/null
+++ b/media-libs/raylib/Manifest
@@ -0,0 +1 @@
+DIST 4.0.0.tar.gz 30985161 BLAKE2B 61e5f6a39d43276339c4db1e485d687533bba355275f8b0bd142e16357d206fe16c46274a328aa43225e7db51d965c4368aacc999751d3e9c3c75ad0937d0cfb SHA512 e9ffab14ab902e3327202e68ca139209ff24100dab62eb03fef50adf363f81e2705d81e709c58cf1514e68e6061c8963555bd2d00744daacc3eb693825fc3417
diff --git a/media-libs/raylib/raylib-4.0.0.ebuild b/media-libs/raylib/raylib-4.0.0.ebuild
new file mode 100644
index 0000000..03fa457
--- /dev/null
+++ b/media-libs/raylib/raylib-4.0.0.ebuild
@@ -0,0 +1,24 @@
+DESCRIPTION="simple and easy-to-use library to enjoy videogames programming"
+
+HOMEPAGE="http://www.raylib.com/"
+
+SRC_URI="https://github.com/raysan5/raylib/archive/refs/tags/4.0.0.tar.gz"
+
+S="${WORKDIR}/${P}/src"
+
+LICENSE="zlib"
+
+SLOT="0"
+
+KEYWORDS="~amd64"
+
+# TODO: add static-libs USE flag
+IUSE=""
+
+src_compile() {
+ emake PLATFORM=PLATFORM_DESKTOP RAYLIB_LIBTYPE=SHARED
+}
+
+src_install() {
+ emake install RAYLIB_LIBTYPE=SHARED RAYLIB_INSTALL_PATH=${D}/usr/lib64 RAYLIB_H_INSTALL_PATH=${D}/usr/include
+}