summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fe361a7055489b403ff5d4f5d321a603aa2b8ad8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Maintainer: Rodrigo Bezerra <rodrigobezerra21 at gmail dot com>
# Contributor: orumin <dev@orum.in>

_basename=libkate
pkgname=lib32-libkate
pkgver=0.4.1
pkgrel=6
pkgdesc="A karaoke and text codec for embedding in ogg (32-bit)"
url="https://wiki.xiph.org/OggKate"
license=('BSD')
arch=('x86_64')
depends=('lib32-libogg' 'lib32-libpng' 'libkate')
makedepends=('lib32-gcc-libs' 'git' 'pkg-config')
source=("https://download.videolan.org/contrib/kate/$_basename-$pkgver.tar.gz"
        0001-Fix-automake-warnings.patch)
sha512sums=('2635237753abc0f6c43fc07bd0ecc57c2f3c893efa6c62ad08de9191045612477302ed45acd61cdfea7447efd654ebbe0ed2d6a2cbf867eb834581d7ee43377b'
            '525d120cddd040441859f2783e6e566da631ba304074bfa40a34399879fc3053577e8e71ef804168aeef519fac62e205829b50a61d770cddd46f7dbfba660842')

build() {
    cd $_basename-$pkgver

    export CC='gcc -m32'
    export CXX='g++ -m32'
    export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'

    ./configure \
        --build=i686-pc-linux-gnu \
        --prefix=/usr \
        --libdir=/usr/lib32 \
        --disable-static \
        --disable-doc

    make
}

package() {
    cd $_basename-$pkgver

    make DESTDIR=$pkgdir install

    install -Dt "${pkgdir}/usr/share/licenses/${pkgname}" -m644 COPYING

    cd "$pkgdir/usr"

    rm -r bin include share/{doc,man}
}