mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
extra/aom to 3.0.0-1
This commit is contained in:
parent
9593198eb0
commit
528094fa31
1 changed files with 17 additions and 18 deletions
|
@ -4,8 +4,9 @@
|
||||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||||
# - cmake with -DAOM_TARGET_CPU=generic for !AArch64
|
# - cmake with -DAOM_TARGET_CPU=generic for !AArch64
|
||||||
|
|
||||||
pkgname=aom
|
pkgbase=aom
|
||||||
pkgver=2.0.2
|
pkgname=(aom aom-docs)
|
||||||
|
pkgver=3.0.0
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Alliance for Open Media video codec"
|
pkgdesc="Alliance for Open Media video codec"
|
||||||
url="https://aomedia.org/"
|
url="https://aomedia.org/"
|
||||||
|
@ -13,36 +14,34 @@ arch=(x86_64)
|
||||||
license=(BSD custom:PATENTS)
|
license=(BSD custom:PATENTS)
|
||||||
depends=(gcc-libs)
|
depends=(gcc-libs)
|
||||||
makedepends=(git cmake ninja doxygen yasm)
|
makedepends=(git cmake ninja doxygen yasm)
|
||||||
provides=(libaom.so)
|
source=("$pkgbase-$pkgver.tar.gz::https://aomedia.googlesource.com/aom/+archive/v$pkgver.tar.gz")
|
||||||
_commit=cb1d48da8da2061e72018761788a18b8fa8013bb # tags/v2.0.2^0
|
b2sums=('572af4b99669f2aff52748446fe985373fdfabe9dedfcc484c8346937a6adb80c60e251126ca529c75f6ace24c6c9a9d71bbf7eede49f07a97fde57ee04494ad')
|
||||||
source=("git+https://aomedia.googlesource.com/aom#commit=$_commit")
|
|
||||||
sha256sums=('SKIP')
|
|
||||||
|
|
||||||
pkgver() {
|
|
||||||
cd $pkgname
|
|
||||||
git describe --tags | sed 's/^v//;s/-errata/.errata/;s/-/+/g'
|
|
||||||
}
|
|
||||||
|
|
||||||
prepare() {
|
|
||||||
cd $pkgname
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
[[ $CARCH != "aarch64" ]] && CONFIG="-DAOM_TARGET_CPU=generic"
|
[[ $CARCH != "aarch64" ]] && CONFIG="-DAOM_TARGET_CPU=generic"
|
||||||
cmake -S $pkgname -B build -G Ninja \
|
cmake -S . -B build -G Ninja \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DBUILD_SHARED_LIBS=1 \
|
-DBUILD_SHARED_LIBS=1 \
|
||||||
-DENABLE_TESTS=0 $CONFIG
|
-DENABLE_TESTS=0 $CONFIG
|
||||||
cmake --build build
|
cmake --build build
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package_aom() {
|
||||||
|
provides=(libaom.so)
|
||||||
|
|
||||||
DESTDIR="$pkgdir" cmake --install build
|
DESTDIR="$pkgdir" cmake --install build
|
||||||
|
|
||||||
|
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE PATENTS
|
||||||
|
}
|
||||||
|
|
||||||
|
package_aom-docs() {
|
||||||
|
pkgdesc+=" (documentation)"
|
||||||
|
depends=()
|
||||||
|
|
||||||
mkdir -p "$pkgdir/usr/share/doc"
|
mkdir -p "$pkgdir/usr/share/doc"
|
||||||
cp -r build/docs/html "$pkgdir/usr/share/doc/$pkgname"
|
cp -r build/docs/html "$pkgdir/usr/share/doc/$pkgname"
|
||||||
|
|
||||||
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgname/{LICENSE,PATENTS}
|
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE PATENTS
|
||||||
}
|
}
|
||||||
|
|
||||||
# vim:set et sw=2:
|
# vim:set et sw=2:
|
||||||
|
|
Loading…
Reference in a new issue