Skip to content

Commit

Permalink
updpatch: premake 5.0.0-beta3-2
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryolitia authored and felixonmars committed Dec 9, 2024
1 parent 536439e commit d890f07
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions premake/riscv64.patch
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
--- PKGBUILD
+++ PKGBUILD
@@ -11,8 +11,17 @@ arch=('x86_64')
@@ -11,8 +11,15 @@ arch=('x86_64')
url="https://premake.github.io/"
license=('BSD')
depends=('glibc')
-source=("https://github.com/premake/premake-core/releases/download/v${_pkgver}/premake-${_pkgver}-src.zip")
-sha512sums=('a349dabe3db5b503c283e836da89a5239007696f87756fe34e011bee655c86cd8ccc1c0c00f72a46d0d10302c2f5d67e37d566313e68a16406924a8ba70c5d8f')
+makedepends=('dos2unix')
+source=("https://github.com/premake/premake-core/releases/download/v${_pkgver}/premake-${_pkgver}-src.zip"
license=('BSD-3-Clause')
depends=('glibc' 'util-linux-libs')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/premake/premake-core/archive/refs/tags/v${_pkgver}.tar.gz")
-sha512sums=('3fd5cf526e28b36bf32d3015bcb5841b8dc3e3570029dd25442bba118369f104e7504682f7e1a409d879de562b19db55bccfed97939fef376c211cfb77ceff6e')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/premake/premake-core/archive/refs/tags/v${_pkgver}.tar.gz"
+ premake-riscv.patch)
+sha512sums=('a349dabe3db5b503c283e836da89a5239007696f87756fe34e011bee655c86cd8ccc1c0c00f72a46d0d10302c2f5d67e37d566313e68a16406924a8ba70c5d8f'
+sha512sums=('3fd5cf526e28b36bf32d3015bcb5841b8dc3e3570029dd25442bba118369f104e7504682f7e1a409d879de562b19db55bccfed97939fef376c211cfb77ceff6e'
+ 'e8d81d2f58e6760b2dc83cc754b5c7ab46c276f94cf7a60f23a10ca69db7bacd226c551dbcf4f82d1393b506e1c8786be67ac92d86afc9a4d61f2754a60dc452')
+
+prepare() {
+ cd "premake-$_pkgver-src"
+
+ unix2dos -O ../premake-riscv.patch | patch -Np1 --binary
+ cd "premake-core-$_pkgver"
+ patch -Np1 ../premake-riscv.patch
+}

build() {
cd "premake-$_pkgver-src/build/gmake2.unix"
cd "premake-core-$_pkgver"

0 comments on commit d890f07

Please sign in to comment.