Date: Tuesday, April 6, 2021 @ 18:01:59
  Author: heftig
Revision: 411641

split docs

Modified:
  aom/trunk/PKGBUILD

----------+
 PKGBUILD |   17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2021-04-06 17:56:45 UTC (rev 411640)
+++ PKGBUILD    2021-04-06 18:01:59 UTC (rev 411641)
@@ -1,7 +1,8 @@
 # Maintainer: Jan Alexander Steffens (heftig) <hef...@archlinux.org>
 # Contributor: Chocobo1 <chocobo1 AT archlinux DOT net>
 
-pkgname=aom
+pkgbase=aom
+pkgname=(aom aom-docs)
 pkgver=3.0.0
 pkgrel=1
 pkgdesc="Alliance for Open Media video codec"
@@ -10,8 +11,7 @@
 license=(BSD custom:PATENTS)
 depends=(gcc-libs)
 makedepends=(git cmake ninja doxygen yasm)
-provides=(libaom.so)
-source=("$pkgname-$pkgver.tar.gz::https://aomedia.googlesource.com/aom/+archive/v$pkgver.tar.gz";)
+source=("$pkgbase-$pkgver.tar.gz::https://aomedia.googlesource.com/aom/+archive/v$pkgver.tar.gz";)
 
b2sums=('572af4b99669f2aff52748446fe985373fdfabe9dedfcc484c8346937a6adb80c60e251126ca529c75f6ace24c6c9a9d71bbf7eede49f07a97fde57ee04494ad')
 
 build() {
@@ -22,9 +22,18 @@
   cmake --build build
 }
 
-package() {
+package_aom() {
+  provides=(libaom.so)
+
   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"
   cp -r build/docs/html "$pkgdir/usr/share/doc/$pkgname"
 

Reply via email to