summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b5d777f2431daf71f0fa0a344f3d1a39bf38322e (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
# Maintainer: Carsten Feuls <archlinux at carstenfeuls dot de>

pkgname=hamlib-git
pkgver=aef1f6d1
pkgrel=1
pkgdesc="Ham radio equipment control libraries"
arch=('i686' 'x86_64' 'armv5h' 'armv6h' 'armv7h')
url="http://hamlib.org"
license=('GPL' 'LGPL')
depends=('perl' 'python2' 'tcl' 'libxml2' 'libusb')
makedepends=('libtool' 'swig')
source=('hamlib-git::git+git://git.code.sf.net/p/hamlib/code')
options=('!emptydirs')
conflicts=('hamlib')
provides=('hamlib')
md5sums=('SKIP')
sha256sums=('SKIP')


pkgver() {
	cd ${srcdir}/${pkgname}
	git describe --always | sed 's|-|.|g'
}

build() {
	export PYTHON=/usr/bin/python2

	cd ${srcdir}/${pkgname}
	./bootstrap
	./configure \
		--prefix=/usr \
		--sbindir=/usr/bin \
		--with-perl-binding \
		--with-python-binding \
		--with-xml-support \
		--with-tcl-binding
	make
}

package() {
	cd ${srcdir}/${pkgname}

	make DESTDIR=$pkgdir install

	# fix perl module location
	#cd $pkgdir/usr/lib/perl5/site_perl/
	#mkdir -p current/
	#mv auto current
	#mv Hamlib.pm current
	#rm perltest.pl

	/usr/bin/find $pkgdir -name '.packlist' -delete
	/usr/bin/find $pkgdir -name '*.pod' -delete
}