archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libkate / trunk / PKGBUILD
blobb7f502d111b7c82a9c5aaa4ab291966fd12546a0
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>
7 pkgbase=libkate
8 pkgname=(libkate libkate-docs)
9 pkgver=0.4.1
10 pkgrel=8
11 pkgdesc="A karaoke and text codec for embedding in ogg"
12 license=(BSD)
13 url="https://wiki.xiph.org/OggKate"
14 arch=(x86_64)
15 makedepends=(libpng libogg)
16 options=(debug)
17 source=(
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')
26 _pick() {
27   local p="$1" f d; shift
28   for f; do
29     d="$srcdir/$p/${f#$pkgdir/}"
30     mkdir -p "$(dirname "$d")"
31     mv "$f" "$d"
32     rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
33   done
36 prepare() {
37   cd $pkgbase-$pkgver
38   patch -Np1 -i ../0001-Fix-automake-warnings.patch
39   autoreconf -fiv
42 build() {
43   cd $pkgbase-$pkgver
44   ./configure --prefix=/usr \
45               --disable-static \
46               --disable-doc
47   make
50 package_libkate() {
51   depends=(glibc)
52   optdepends=(
53     'libkate-docs: for developer documentation'
54     'libogg: for katalyzer, katedec and kateenc'
55     'libpng: for kateenc'
56   )
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"
63   cd "$pkgdir"
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"