mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-09 13:17:14 +08:00
[skip-ci] aom: import as vlc new deps
This commit is contained in:
parent
f6c94997d6
commit
e030862ec8
47
aom/PKGBUILD
Normal file
47
aom/PKGBUILD
Normal file
@ -0,0 +1,47 @@
|
||||
# Contributions from Arch:
|
||||
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
|
||||
# Contributor: Chocobo1 <chocobo1 AT archlinux DOT net>
|
||||
|
||||
pkgname=aom
|
||||
pkgver=1.0.0
|
||||
pkgrel=1
|
||||
pkgdesc="Alliance for Open Media video codec"
|
||||
url="https://aomedia.org/"
|
||||
arch=(x86_64)
|
||||
license=(BSD custom:PATENTS)
|
||||
depends=(gcc-libs)
|
||||
makedepends=(git cmake ninja doxygen graphviz yasm)
|
||||
_commit=d14c5bb4f336ef1842046089849dee4a301fbbf0 # tags/v1.0.0^0
|
||||
source=("git+https://aomedia.googlesource.com/aom#commit=$_commit")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd $pkgname
|
||||
git describe --tags | sed 's/^v//;s/-/+/g'
|
||||
}
|
||||
|
||||
prepare() {
|
||||
mkdir build
|
||||
cd $pkgname
|
||||
# Reduce docs size
|
||||
printf '%s\n' >>libs.doxy_template \
|
||||
HAVE_DOT=yes DOT_IMAGE_FORMAT=svg INTERACTIVE_SVG=yes
|
||||
}
|
||||
|
||||
build() {
|
||||
cd build
|
||||
cmake -G Ninja ../$pkgname \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DBUILD_SHARED_LIBS=1 \
|
||||
-DENABLE_TESTS=0
|
||||
cmake --build .
|
||||
}
|
||||
|
||||
package() {
|
||||
DESTDIR="$pkgdir" cmake --build build --target install
|
||||
|
||||
mkdir -p "$pkgdir/usr/share/doc"
|
||||
cp -r build/docs/html "$pkgdir/usr/share/doc/$pkgname"
|
||||
|
||||
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgname/{LICENSE,PATENTS}
|
||||
}
|
Loading…
Reference in New Issue
Block a user