db-move: moved d-spy from [testing] to [extra] (x86_64)
[arch-packages.git] / libkate / repos / extra-x86_64 / PKGBUILD
blob1ce31f73e3d1c51751243bf78f360ee9c1b85369
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=9
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 source=(
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')
25 _pick() {
26   local p="$1" f d; shift
27   for f; do
28     d="$srcdir/$p/${f#$pkgdir/}"
29     mkdir -p "$(dirname "$d")"
30     mv "$f" "$d"
31     rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
32   done
35 prepare() {
36   cd $pkgbase-$pkgver
37   patch -Np1 -i ../0001-Fix-automake-warnings.patch
38   autoreconf -fiv
41 build() {
42   local configure_options=(
43     --prefix=/usr
44     --disable-static
45     --disable-doc
46   )
48   cd $pkgbase-$pkgver
49   ./configure "${configure_options[@]}"
50   make
53 package_libkate() {
54   depends=(glibc)
55   optdepends=(
56     'libkate-docs: for developer documentation'
57     'libogg: for katalyzer, katedec and kateenc'
58     'libpng: for kateenc'
59   )
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"
66   cd "$pkgdir"
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"