archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libmatroska / trunk / PKGBUILD
blob5d2ce94f197066fe15a282d7334f4887df79b67c
1 # Maintainer: Giovanni Scafora <giovanni@archlinux.org>
2 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
3 # Contributor 03/08/04 <lefungus@altern.org>
5 pkgname=libmatroska
6 pkgver=1.6.3
7 pkgrel=2
8 pkgdesc='Matroska library'
9 arch=(x86_64)
10 url=https://github.com/Matroska-Org/libmatroska
11 license=(LGPL2.1)
12 depends=(libebml.so)
13 makedepends=(
14   cmake
15   git
16   ninja
18 provides=(libmatroska.so)
19 _tag=a72667e36153c418cab3ca1b3dcfd85afb25942f
20 source=(git+https://github.com/Matroska-Org/libmatroska.git#tag=${_tag})
21 sha256sums=(SKIP)
23 pkgver() {
24   cd libmatroska
26   git describe --tags | sed 's/^release-//'
29 build() {
30   cmake -S libmatroska -B build -G Ninja \
31     -DCMAKE_BUILD_TYPE=None \
32     -DCMAKE_INSTALL_PREFIX=/usr \
33     -DCMAKE_INSTALL_LIBDIR=/usr/lib \
34     -DBUILD_SHARED_LIBS=ON
35   cmake --build build
38 package() {
39   DESTDIR="${pkgdir}" cmake --build build --target install
42 # vim: ts=2 sw=2 et: