capstone: Fix project version

This commit is contained in:
PerikiyoXD 2024-04-25 20:12:39 +02:00 committed by GitHub
parent a6f41afcda
commit efeb037f6f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 17 additions and 3 deletions

View File

@ -5,7 +5,7 @@ pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-capstone"
"${MINGW_PACKAGE_PREFIX}-python-capstone")
pkgver=5.0.1
pkgrel=1
pkgrel=2
pkgdesc='Lightweight multi-platform, multi-architecture disassembly framework (mingw-w64)'
url='https://www.capstone-engine.org/index.html'
arch=('any')
@ -20,13 +20,16 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-cmake"
"${MINGW_PACKAGE_PREFIX}-python-setuptools"
"${MINGW_PACKAGE_PREFIX}-python-wheel")
source=("${_realname}-${pkgver}.tar.gz::https://github.com/capstone-engine/capstone/archive/refs/tags/${pkgver}.tar.gz"
"mingw_python.patch")
"mingw_python.patch"
"fix_pkgconf_version_on_cmake.patch")
sha256sums=('2b9c66915923fdc42e0e32e2a9d7d83d3534a45bb235e163a70047951890c01a'
'1b3fad23218c15ea232c0698b45095325d17401c9902268395b452ba3733ae0d')
'1b3fad23218c15ea232c0698b45095325d17401c9902268395b452ba3733ae0d'
'e28d9d4ab763cf4bbb16639afa9e8a3d227731b5d0cb1dd5756d3c2ad00076a6')
prepare() {
cd ${_realname}-${pkgver}
patch -p1 -i "${srcdir}/mingw_python.patch"
patch -p1 -i "${srcdir}/fix_pkgconf_version_on_cmake.patch"
}
build() {

View File

@ -0,0 +1,11 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -22,7 +22,7 @@ cmake_policy(SET CMP0042 NEW)
cmake_policy(SET CMP0091 NEW)
project(capstone
- VERSION 5.0
+ VERSION 5.0.1
)
if (MSVC)