summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a220f8bde7ead3c7828cd61bb74de1d369d8b3dd (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Maintainer: not_anonymous <nmlibertarian@gmail.com>
# Original Contributor: Bob Finch <w9ya@arrl.net>

pkgname=xfhell
pkgver=3.3
pkgrel=2
pkgdesc="Ham Radio - OLDER GTK2 version - de/en-codes Hellschreiber signals."
arch=('i686' 'x86_64')
url="http://www.qsl.net/5b4az/pkg/xfhell/xfhell.html"
license=(GPL3)
depends=('gtk2' 'alsa-lib' 'hamradio-menus')
makedepends=('autoconf' 'automake' 'intltool' 'pkg-config')
# 'imagemagick: used IF you want to convert icons/images')
options=('!emptydirs')
provides=(xfhell)
conflicts=(xfhell-gtk3)
source=("http://www.qsl.net/5b4az/pkg/$pkgname/$pkgname-$pkgver.tar.bz2"
	diff.autogen.sh
	diff.Makefile.am
	$pkgname.desktop
	xdemorse.png
	$pkgname.1)

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

	patch -p0 < ../diff.autogen.sh
	patch -p0 < ../diff.Makefile.am

	sed -i s:xpm:png: Makefile.am
	mkdir files/
#	convert files/$pkgname.xpm files/$pkgname.png
	install -m644 ../$pkgname.desktop files/$pkgname.desktop
	install -m644 ../xdemorse.png files/$pkgname.png
}

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

	./autogen.sh
	./configure --prefix=/usr
	make
}

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

#	make check
	make -i check	# sadly the intl. files. are not correct (sigh)
}

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

	mkdir -p $pkgdir/usr/share/{applications,pixmaps,$pkgname,doc/$pkgname}
	make DESTDIR=$pkgdir install

	mkdir -p $pkgdir/usr/bin
	mv $pkgdir/usr/bin/$pkgname $pkgdir/usr/bin/$pkgname.1
	install -D -m 755 ../$pkgname.1 $pkgdir/usr/bin/$pkgname
}
md5sums=('4bf34e4ba47ee886e47bd1d631f6a4c5'
         '0dc3caa8b1acd87b453bd0acef17b034'
         'f5b10bc9c510cb359b6cb626d628aab9'
         '9a3568a6dbdd2bfb90aa76adf2dc531f'
         'edcd3f301ec8ea95453d40534beb6ede'
         'f1b4aee1d96afc2a5aa2aed475914ce4')
sha256sums=('527f3139ece4596de6c83a8504da8c13b45359b25661d9a56c10eb30d3a92c21'
            '335a1b0407d45a2abd6260564ca50bea04e02485cc41c59a835341fa0e5dd1ee'
            '2484d70e867515fbe49fff2463a1ef8ecee02f1feb36ef4deec8fd24fcea0f7b'
            'a4bdba7b601bace48e15bd2dc6f0daadd8a10511242cbb2fdc17bf78a19647b5'
            '857eb46c32c12333a7110fb3ea99d2246084724856638f2e04324fc2a576626d'
            'e98727d5dd44ef65854b0735f45e7fbee19102d182b872bbd56b048d45a1f4a4')