summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d1778c711a395efbfaf156e61689e20faa82e6d0 (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: GordonGR <ntheo1979@gmail.com>
# Contributor: Gaetan Bisson <bisson@archlinux.org> 
# Contributor: said <atvordhosbn[at]gmail[dot]com>

pkgname=lib32-libcue
_pkgname=libcue
pkgver=2.1.0
pkgrel=1
pkgdesc='Parses so-called cue sheets and handles the parsed data (lib32)'
url='http://github.com/lipnitsk/libcue/'
arch=('x86_64')
license=('GPL2')
source=("${_pkgname}-$pkgver.tar.gz::https://github.com/lipnitsk/libcue/archive/v$pkgver.tar.gz")
depends=('lib32-glibc' 'libcue')
makedepends=('cmake')
md5sums=('0fff773e95175df349329ea34bc775cf')


build() {
cd ${_pkgname}-${pkgver}

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

cmake -DCMAKE_INSTALL_PREFIX=/usr \
  -DCMAKE_INSTALL_LIBDIR=/usr/lib32 \
  -DCC="gcc -m32" \
  -DCXX="g++ -m32" \
  -DPKG_CONFIG_PATH="/usr/lib32/pkgconfig"

make
}

package() {
cd ${_pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install

cd "$pkgdir/usr"
rm -rf {bin,include,share/imlib2}/
mv lib/ lib32/

cd "${pkgdir}/usr/lib32/pkgconfig"
sed -i 's|includedir=${prefix}/include|includedir=${prefix}/include/libcue/|' libcue.pc
sed -i 's|libdir=${prefix}/lib|libdir=${prefix}/lib32|' libcue.pc
}