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

Antonio Rojas arojas at archlinux.org
Fri May 29 16:37:39 UTC 2020


    Date: Friday, May 29, 2020 @ 16:37:38
  Author: arojas
Revision: 387852

Update to 0.4.4

Modified:
  md4c/trunk/PKGBUILD

----------+
 PKGBUILD |   18 ++++++------------
 1 file changed, 6 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-29 16:20:05 UTC (rev 387851)
+++ PKGBUILD	2020-05-29 16:37:38 UTC (rev 387852)
@@ -1,7 +1,7 @@
 # Maintainer: Antonio Rojas <arojas at archlinux.org>
 
 pkgname=md4c
-pkgver=0.4.3
+pkgver=0.4.4
 pkgrel=1
 pkgdesc="C Markdown parser"
 arch=(x86_64)
@@ -10,22 +10,16 @@
 depends=(glibc)
 makedepends=(cmake)
 source=($pkgname-$pkgver.tar.gz::"https://github.com/mity/md4c/archive/release-$pkgver.tar.gz")
-sha256sums=('3486c2bd3fd64a8237f7835d9d1c60ea8a362f1910cb1c64f001971220476a4a')
+sha256sums=('d9545e4380c36fef198205b1efaec002a4dd352e75f104955956ecc560dcebbd')
 
-prepare() {
-  mkdir -p build
-}
-
 build() {
-  cd build
-  cmake ../$pkgname-release-$pkgver \
+  cmake -B build -S $pkgname-release-$pkgver \
     -DCMAKE_INSTALL_PREFIX=/usr
-  make
+  cmake --build build
 }
 
 package() {
-  cd build
-  make DESTDIR="$pkgdir" install
+  DESTDIR="$pkgdir" cmake --install build
 
-  install -Dm644 "$srcdir"/$pkgname-release-$pkgver/LICENSE.md -t "$pkgdir"/usr/share/licenses/$pkgname/
+  install -Dm644 $pkgname-release-$pkgver/LICENSE.md -t "$pkgdir"/usr/share/licenses/$pkgname/
 }


More information about the arch-commits mailing list