1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Giovanni Scafora <giovanni@archlinux.org>
3 # Contributor: N30N <archlinux@alunamation.com>
4 # Contributor: linkmauve <linkmauve@linkmauve.fr>
5 # Contributor: mokkurkalve <xenofil@gmail.com>
8 pkgname=(libkate libkate-docs)
11 pkgdesc="A karaoke and text codec for embedding in ogg"
13 url="https://wiki.xiph.org/OggKate"
15 makedepends=(libpng libogg)
17 https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$pkgname/$pkgname-$pkgver.tar.gz
18 0001-Fix-automake-warnings.patch
20 sha512sums=('2635237753abc0f6c43fc07bd0ecc57c2f3c893efa6c62ad08de9191045612477302ed45acd61cdfea7447efd654ebbe0ed2d6a2cbf867eb834581d7ee43377b'
21 '525d120cddd040441859f2783e6e566da631ba304074bfa40a34399879fc3053577e8e71ef804168aeef519fac62e205829b50a61d770cddd46f7dbfba660842')
22 b2sums=('99e755a365fcd9983fcce59f38a313b4c0c23c3a274e3b98c8756aafae29d19dc3ed3d200cf2207dd2d4985d8e99ec0d47dcdadc273a78ff84c4be11330b1e0a'
23 '57869bb321ca84e3ed23a5d9f2a234421da7d1979e46a357862c6376c7fb5e70336600ef834781daaf4e4d5094b41324a5374cf249ce108ec158fbf0369925eb')
26 local p="$1" f d; shift
28 d="$srcdir/$p/${f#$pkgdir/}"
29 mkdir -p "$(dirname "$d")"
31 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
37 patch -Np1 -i ../0001-Fix-automake-warnings.patch
42 local configure_options=(
49 ./configure "${configure_options[@]}"
56 'libkate-docs: for developer documentation'
57 'libogg: for katalyzer, katedec and kateenc'
60 provides=(libkate.so liboggkate.so)
62 make DESTDIR="$pkgdir" install -C $pkgbase-$pkgver
63 install -vDm 644 $pkgbase-$pkgver/COPYING -t "$pkgdir/usr/share/licenses/$pkgbase"
64 rm -v "$pkgdir/usr/share/man/man1/KateDJ.1"
67 _pick docs usr/share/doc/$pkgbase/html
70 package_libkate-docs() {
71 pkgdesc+=' - developer documentation'
73 mv -v docs/* "$pkgdir"
74 install -vDm 644 $pkgbase-$pkgver/COPYING -t "$pkgdir/usr/share/licenses/$pkgname"