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)
18 https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$pkgname/$pkgname-$pkgver.tar.gz
19 0001-Fix-automake-warnings.patch
21 sha512sums=('2635237753abc0f6c43fc07bd0ecc57c2f3c893efa6c62ad08de9191045612477302ed45acd61cdfea7447efd654ebbe0ed2d6a2cbf867eb834581d7ee43377b'
22 '525d120cddd040441859f2783e6e566da631ba304074bfa40a34399879fc3053577e8e71ef804168aeef519fac62e205829b50a61d770cddd46f7dbfba660842')
23 b2sums=('99e755a365fcd9983fcce59f38a313b4c0c23c3a274e3b98c8756aafae29d19dc3ed3d200cf2207dd2d4985d8e99ec0d47dcdadc273a78ff84c4be11330b1e0a'
24 '57869bb321ca84e3ed23a5d9f2a234421da7d1979e46a357862c6376c7fb5e70336600ef834781daaf4e4d5094b41324a5374cf249ce108ec158fbf0369925eb')
27 local p="$1" f d; shift
29 d="$srcdir/$p/${f#$pkgdir/}"
30 mkdir -p "$(dirname "$d")"
32 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
38 patch -Np1 -i ../0001-Fix-automake-warnings.patch
44 ./configure --prefix=/usr \
53 'libkate-docs: for developer documentation'
54 'libogg: for katalyzer, katedec and kateenc'
57 provides=(libkate.so liboggkate.so)
59 make DESTDIR="$pkgdir" install -C $pkgbase-$pkgver
60 install -vDm 644 $pkgbase-$pkgver/COPYING -t "$pkgdir/usr/share/licenses/$pkgbase"
61 rm -v "$pkgdir/usr/share/man/man1/KateDJ.1"
64 _pick docs usr/share/doc/$pkgbase/html
67 package_libkate-docs() {
68 pkgdesc+=' - developer documentation'
70 mv -v docs/* "$pkgdir"
71 install -vDm 644 $pkgbase-$pkgver/COPYING -t "$pkgdir/usr/share/licenses/$pkgname"