mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 03:07:15 +08:00
cmark: import as mkvtoolnix new deps
This commit is contained in:
parent
81e274b38f
commit
b8a65d4fb3
37
cmark/PKGBUILD
Normal file
37
cmark/PKGBUILD
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
# 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
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user