archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libavtp / trunk / PKGBUILD
blobc35f8ab7dafaa11b9c753a1df1f3dd25d8c3d059
1 # Maintainer: David Runge <dvzrv@archlinux.org>
3 pkgname=libavtp
4 pkgver=0.1.0
5 pkgrel=2
6 pkgdesc="Open source implementation of Audio Video Transport Protocol"
7 arch=('x86_64')
8 url="https://github.com/Avnu/libavtp"
9 license=('BSD')
10 depends=('glibc')
11 makedepends=('cmocka' 'meson')
12 provides=('libavtp.so')
13 source=("$pkgname-$pkgver.tar.gz::https://github.com/Avnu/${pkgname}/archive/v${pkgver}.tar.gz")
14 sha512sums=('b08d177bbf2e9059489b9d11869e8c8c46e3abce4d3c4a3cabc0aedaae41a591280a9f79295a5c17bcba3beb52e10061c062bceffed8e1a26589d5726f2c5428')
16 build() {
17   cd "$pkgname-$pkgver"
18   arch-meson --prefix=/usr \
19              build
20   ninja -C build
23 check() {
24   cd "$pkgname-$pkgver"
25   meson test -C build
28 package() {
29   cd "$pkgname-$pkgver"
30   DESTDIR="${pkgdir}" meson install -C build
31   install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
32   install -vDm 644 {CONTRIBUTING,HACKING,README}.md \
33     -t "${pkgdir}/usr/share/doc/${pkgname}"