summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorFabioLolix2024-04-21 11:41:28 +0200
committerFabioLolix2024-04-21 11:41:28 +0200
commit0f3a3dc4d6d3aac73988c5e201a27d1c5d0eb883 (patch)
tree61d7dcd74407329db267e64435b05d0a2ee71e35 /PKGBUILD
parentde11661a45b267f5ad67b85fd09d46a0da69c98f (diff)
downloadaur-castxml.tar.gz
v0.6.5
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD20
1 files changed, 9 insertions, 11 deletions
diff --git a/PKGBUILD b/PKGBUILD
index a6b5dd0852b0..18500351a051 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,23 +2,25 @@
pkgname=castxml
pkgdesc="C-family abstract syntax tree XML output tool."
-pkgver=0.6.4
+pkgver=0.6.5
pkgrel=1
arch=(i686 x86_64)
url="https://github.com/CastXML/CastXML"
license=(Apache)
depends=(llvm clang)
makedepends=(cmake python-sphinx)
-source=("$pkgname-$pkgver.tar.gz::https://github.com/CastXML/CastXML/archive/v$pkgver.tar.gz")
-sha256sums=('86d02c7ed743122ce8c6d888c643da92fb7515da04577a933d33180fb7731872')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/CastXML/CastXML/archive/v${pkgver}.tar.gz")
+sha256sums=('fea4754bdb1fb4496fec12352e2bd07854843aa757e85d0553f224ff0111c482')
prepare() {
- cd "CastXML-$pkgver"
+ cd "CastXML-${pkgver}"
# Fix build issue as reported by Kniyl here https://github.com/CastXML/CastXML/issues/102
sed -i "s|\${llvm_libs}|LLVM|g" src/CMakeLists.txt
+}
- cmake . \
+build() {
+ cmake -B build -S "CastXML-${pkgver}" -Wno-dev \
-DCLANG_LINK_CLANG_DYLIB=1 \
-DSPHINX_EXECUTABLE=/usr/bin/sphinx-build \
-DSPHINX_HTML=1 \
@@ -26,14 +28,10 @@ prepare() {
-DCMAKE_INSTALL_PREFIX=/usr \
-DCastXML_INSTALL_DOC_DIR=share/doc/castxml \
-DCastXML_INSTALL_MAN_DIR=share/man
-}
-build() {
- cd "CastXML-$pkgver"
- make
+ cmake --build build
}
package(){
- cd "CastXML-$pkgver"
- make DESTDIR="$pkgdir" install
+ DESTDIR="${pkgdir}" cmake --install build
}