mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
38 lines
948 B
Bash
38 lines
948 B
Bash
# Contributions from Arch:
|
|
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
|
# Contributor: Veeti Paananen <veeti.paananen@rojekti.fi>
|
|
|
|
pkgname=cmark
|
|
pkgver=0.28.3
|
|
pkgrel=1
|
|
pkgdesc="CommonMark parsing and rendering library and program in C"
|
|
arch=('x86_64')
|
|
url="https://github.com/commonmark/cmark"
|
|
license=('custom:BSD2')
|
|
depends=('glibc')
|
|
makedepends=('cmake' 'python')
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/jgm/cmark/archive/$pkgver.tar.gz")
|
|
sha512sums=('409105a3228a8ae22ba6acf95cd99bc9a2c20f8603aa0e803a33172eb6ef53f80f8f0262d2258b77f9fd6e1f2e9017a6c906b88f761e053c09ef88c9ffab7d29')
|
|
|
|
prepare() {
|
|
mkdir -p build
|
|
}
|
|
|
|
build() {
|
|
cd build
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib ../cmark-$pkgver
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd build
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
cd build
|
|
make install DESTDIR="$pkgdir"
|
|
|
|
install -D -m 644 "$srcdir"/cmark-$pkgver/COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
|
|
}
|