[arch-commits] Commit in expat/trunk (PKGBUILD)

Anatol Pomozov anatolik at archlinux.org
Mon Dec 23 15:43:54 UTC 2019


    Date: Monday, December 23, 2019 @ 15:43:53
  Author: anatolik
Revision: 372159

Convert to CMake build system

Some users of this package need expat.cmake file that is installed if we build
expat with CMake.

Modified:
  expat/trunk/PKGBUILD

----------+
 PKGBUILD |   12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-23 14:02:42 UTC (rev 372158)
+++ PKGBUILD	2019-12-23 15:43:53 UTC (rev 372159)
@@ -4,12 +4,13 @@
 
 pkgname=expat
 pkgver=2.2.9
-pkgrel=2
+pkgrel=3
 pkgdesc='An XML parser library'
 arch=(x86_64)
 url='https://libexpat.github.io/'
 license=(custom)
 depends=(glibc)
+makedepends=(cmake)
 source=(https://github.com/libexpat/libexpat/releases/download/R_${pkgver//./_}/expat-${pkgver}.tar.bz2{,.asc})
 validpgpkeys=(3176EF7DB2367F1FCA4F306B1F9B0E909AF37285) # Sebastian Pipping
 sha256sums=('f1063084dc4302a427dabcca499c8312b3a32a29b7d2506653ecc8f950a9a237'
@@ -17,16 +18,17 @@
 
 build() {
   cd $pkgname-$pkgver
-  ./configure --prefix=/usr --disable-static
-  make
+  cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -S . -B build
+  cmake --build build
 }
 
 check() {
-  make -C $pkgname-$pkgver check
+  cd $pkgname-$pkgver
+  cmake --build build --target tests
 }
 
 package() {
   cd $pkgname-$pkgver
-  make DESTDIR="$pkgdir" install
+  cmake --build build --target install -- DESTDIR="$pkgdir"
   install -Dm644 "-t$pkgdir/usr/share/licenses/$pkgname" COPYING
 }


More information about the arch-commits mailing list