blob: a7421d6ff30e648766c6bd74e90993152308a570 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: Tony Lambiris <tony@libpcap.net>
pkgname=libmodulemd-git
pkgver=2.15.0.r0.gbfde7f2
pkgrel=1
pkgdesc="C Library for manipulating module metadata files"
arch=("any")
license=("MIT")
url="https://github.com/fedora-modularity/libmodulemd#branch=main"
makedepends=("meson" "ninja" "pkgconfig" "python-gobject" "valgrind" "autopep8")
source=("${pkgname}::git+https://github.com/fedora-modularity/libmodulemd.git")
provides=('libmodulemd')
conflicts=('libmodulemd')
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}"
git describe --long --tags | \
sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//g;s/^libmodulemd\.//g;'
}
build() {
cd "${srcdir}/${pkgname}"
arch-meson build
ninja -C build
ninja -C build modulemd-2.0-doc
}
check() {
cd "${srcdir}/${pkgname}"
#ninja -C build test
}
package() {
cd "${srcdir}/${pkgname}"
DESTDIR="${pkgdir}/" ninja -C build install
# Defaults to libmodulemd API v1 until more software are ported to API v2
ln -sf "${pkgname%%-git}.so.1" "${pkgdir}/usr/lib/${pkgname%%-git}.so"
install -Dp -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
install -Dp -m644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}
# vim: set ft=sh ts=4 sw=4 noet:
|