summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 98fce6d9dc758b4f1dc53ef6d856013c686381fd (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: not_anonymous <nmlibertarian@gmail.com>
# Contributor: Vitaliy Berdinskikh <skipper13@root.ua> aka UR6LAD
# Original Submitter: Bob Finch <w9ya@qrpqrci.net>

pkgname=dxcc
pkgver=20191204
pkgrel=1
pkgdesc="Ham Radio - Determines ARRL DXCC entity of a callsign"
arch=('any')
url="http://fkurz.net/ham/dxcc.html"
license=('GPL')
depends=('cty' 'perl-tk' 'desktop-file-utils')
install=$pkgname.install
source=(http://fkurz.net/ham/$pkgname/$pkgname-$pkgver.tar.gz
        dxcc.desktop)

prepare() {
	cd $srcdir/$pkgname-$pkgver

	sed -i s:'/usr/share/dxcc/cty.dat':'/usr/share/cty/cty.dat': dxcc
}

package() {
	cd $srcdir/$pkgname-$pkgver

	mkdir -p $pkgdir/usr/bin || return 1
	make DESTDIR=$pkgdir/usr install

	mkdir -p $pkgdir/usr/share/{applications,pixmaps}
	install -m644 ../$pkgname.desktop $pkgdir/usr/share/applications
	install -m644 *.png $pkgdir/usr/share/pixmaps
}
md5sums=('eec8de4c7cc81172684510c21fb28451'
         '2d79fa90731cc07fe9e8144275d8a301')
sha256sums=('03e9036137b00f2b683e2f18a46e4422754fc3f1aa72807b42e0d9eaa0d0f288'
            '8e393a2e2dbf6621ea95dce06f800bfd72dcaa736f423e1d7ff1a60c58710a77')