archrelease: copy trunk to extra-x86_64
[arch-packages.git] / md4c / trunk / PKGBUILD
blobc9b6a1875e9a10dbdfa2fd1bfd8c4498d5b4a617
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
3 pkgname=md4c
4 pkgver=0.4.8
5 pkgrel=1
6 pkgdesc='C Markdown parser'
7 arch=(x86_64)
8 url='https://github.com/mity/md4c'
9 license=(MIT)
10 depends=(glibc)
11 makedepends=(cmake)
12 source=($pkgname-$pkgver.tar.gz::"https://github.com/mity/md4c/archive/release-$pkgver.tar.gz")
13 sha256sums=('4a457df853425b6bb6e3457aa1d1a13bccec587a04c38c622b1013a0da41439f')
15 build() {
16   cmake -B build -S $pkgname-release-$pkgver \
17     -DCMAKE_INSTALL_PREFIX=/usr
18   cmake --build build
21 package() {
22   DESTDIR="$pkgdir" cmake --install build
24   install -Dm644 $pkgname-release-$pkgver/LICENSE.md -t "$pkgdir"/usr/share/licenses/$pkgname/