summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a522e35ecdc530471694bf0d5986de6028836e82 (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
# Maintainer: Vadim Yanitskiy <axilirator@gmail.com>
pkgname=libfftranscode
pkgver=0.5
pkgrel=1
pkgdesc="Proprietary library for ASN.1 APER <-> BER transcoding of RUA/RANAP/HNBAP/S1AP"
arch=('x86_64')
url="http://ftp.osmocom.org/binaries/libfftranscode/"
license=('proprietary')
groups=('devel')
source=("http://ftp.osmocom.org/binaries/${pkgname}/${pkgname}-dev_${pkgver}_amd64.deb"
        "http://ftp.osmocom.org/binaries/${pkgname}/${pkgname}0_${pkgver}_amd64.deb")
md5sums=("ec71c1ef65972de2e21c0adba2a855c5"
         "4592c9a2ec973bc9d5dab14bdeffe7ed")

exz() {
	ar x $1
	tar xJf data.tar.xz
	rm data.tar.xz
}

package() {
	exz "${srcdir}/${pkgname}-dev_${pkgver}_amd64.deb"
	exz "${srcdir}/${pkgname}0_${pkgver}_amd64.deb"

	mkdir -p "${pkgdir}/usr/lib"
	cp "${srcdir}/usr/lib/x86_64-linux-gnu/libfftranscode.so.0.0.0" "${pkgdir}/usr/lib/"
	ln -s "libfftranscode.so.0.0.0" "${pkgdir}/usr/lib/libfftranscode.so.0"
	ln -s "libfftranscode.so.0.0.0" "${pkgdir}/usr/lib/libfftranscode.so"

	mkdir -p "${pkgdir}/usr/lib/pkgconfig"
	cp "${srcdir}/usr/lib/x86_64-linux-gnu/pkgconfig/libfftranscode.pc" "${pkgdir}/usr/lib/pkgconfig/"
	sed -i "s#/lib/x86_64-linux-gnu#/lib#" "${pkgdir}/usr/lib/pkgconfig/libfftranscode.pc"

	mkdir -p "${pkgdir}/usr/include"
	cp -r "${srcdir}/usr/include/fftranscode/" "${pkgdir}/usr/include/"
}