summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ac4c85d08addd72edcb8931ab219b1f77d49ea80 (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
47
48
49
50
51
52
53
54
55
56
57
58
# Maintainer: Alex Henrie <alexhenrie24@gmail.com>
# Contributor: Rodrigo Bezerra <rodrigobezerra21 at gmail dot com>
# Contributor: Fredy GarcĂ­a <frealgagu at gmail dot com>
# Contributor: schuay <jakob.gruber@gmail.com>
# Contributor: GordonGR <ntheo1979@gmail.com>
# Contributor: Kazuo Teramoto <kaz.rag at gmail dot com>
# Contributor: damir <damir@archlinux.org>

_basename=libcdio
pkgname=lib32-libcdio
pkgver=2.2.0
pkgrel=1
pkgdesc="GNU Compact Disc Input and Control Library (32-bit)"
url="https://www.gnu.org/software/libcdio/"
arch=(x86_64)
license=(GPL-3.0-or-later)
depends=(lib32-gcc-libs lib32-ncurses libcdio)
source=(https://github.com/libcdio/libcdio/releases/download/2.2.0/libcdio-${pkgver}.tar.bz2)
sha256sums=(6f8fbdf4d189cf63f2a7a1549c516cd720c7b222c7aaadbc924a26e745a48539)

prepare() {
    cd "${_basename}-${pkgver}"

    autoreconf -fi
}

build() {
    export CC="gcc -m32 -D_LARGEFILE64_SOURCE"
    export CXX="g++ -m32"
    export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"

    cd "${_basename}-${pkgver}"

    ./configure \
        --prefix=/usr \
        --libdir=/usr/lib32 \
        --enable-cpp-progs \
        --disable-vcd-info \
        --without-cd-drive \
        --without-cd-info \
        --without-cdda-player \
        --without-cd-read \
        --without-iso-info \
        --without-iso-read \
        --disable-cddb

    sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool

    make
}

package() {
    cd "${_basename}-${pkgver}"

    make -j1 DESTDIR="${pkgdir}" install

    rm -rf "${pkgdir}/usr/bin" "${pkgdir}/usr/include" "${pkgdir}/usr/share"
}