updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / hamlib / PKGBUILD
blob42fdcf8f68c5307192da7166f261fabbfa75dd4c
1 # Contributor: [Vitaliy Berdinskikh](mailto:ur6lad@archlinux.org.ua) aka UR6LAD
3 pkgname=hamlib
4 pkgver=1.2.14
5 pkgrel=2
6 pkgdesc="HAM radio equipment control libraries"
7 arch=('i686' 'x86_64')
8 url="http://hamlib.org"
9 license=('GPL' 'LGPL')
10 depends=('perl' 'python2' 'tcl' 'libxml2' 'libusb')
11 makedepends=('libtool' 'swig')
12 source=(https://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz)
13 options=('!emptydirs')
14 changelog=${pkgname}.ChangeLog.markdown
16 build() {
17         export PYTHON=/usr/bin/python2
19         cd $srcdir
21         cd $pkgname-$pkgver
23         ./configure --prefix=/usr \
24                 --with-perl-binding \
25                 --with-python-binding \
26                 --enable-tcl-binding
28         make
31 package() {
32         cd $srcdir/$pkgname-$pkgver
34         make DESTDIR=$pkgdir install
36         # fix perl module location
37         cd $pkgdir/usr/lib/perl5/site_perl/
38         mkdir current/
39         mv auto current
40         mv Hamlib.pm current
41         rm perltest.pl
43         /usr/bin/find $pkgdir -name '.packlist' -delete
44         /usr/bin/find $pkgdir -name '*.pod' -delete
47 md5sums=('ccd5232d3285a31c29b5acce1c7a3a65')
48 sha256sums=('4231d431ebdd122cb5dea673e6dd8a3cb59601a770a1b2cc86264725dbe37843')