summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 77888f6f0e11e258476f4606a4ef10c6d70937da (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
# Maintainer: Vadim Yanitskiy <fixeria@osmocom.org>

_pkgname=fc-usbser-tools
pkgname=freecalypso-usbser-tools
pkgver=r1
pkgrel=3
pkgdesc="FreeCalypso USB-serial tools"
arch=('x86_64' 'i686')
url="https://www.freecalypso.org/hg/${_pkgname}"
license=('custom')
groups=('freecalypso')
conflicts=("${pkgname}-hg")
depends=('libusb-compat')
_tarname=${_pkgname}-${pkgver}
source=("https://www.freecalypso.org/pub/GSM/FreeCalypso/${_tarname}.tar.bz2")
sha256sums=('9df1ab84340c42f4485db10743d228997e631c8f4225d793cca511efa8d87346')

build() {
	cd "${_tarname}"
	make CFLAGS="-std=gnu89 ${CFLAGS}"
}

package() {
	cd "${_tarname}"

	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
	install -d "${pkgdir}/usr/share/doc/${pkgname}"
	cp -r doc/* "${pkgdir}/usr/share/doc/${pkgname}/"

	# DESTDIR is not respected, use INSTALL_PREFIX instead
	make INSTALL_PREFIX="${pkgdir}/opt/freecalypso/" install
}