blob: 9b2cf63dd87c18af8db130604c781b621b48a573 (
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
|
# Maintainer (Arch): none
# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
# Maintainer (AUR): tritonas00 <tritonas00@gmail.com>
# Contributor (Arch): Ivan Rojas <kirdux@gmail.com>
# Because gnomeradio is written against ancient libraries, we must patch it to
# compile and work on a modern system. Let's just grab the patch series that
# Debian uses.
_debver=1.8-2 # which patches to grab from Debian
_debrepo=http://ftp.debian.org/debian/pool/main
_debfile() { echo "${_debrepo}/${1:0:1}/${1}/${1}_${2}"; }
pkgname=gnomeradio
pkgver=1.8
pkgrel=6.1
pkgdesc="An FM-radio tuner for the GNOME desktop"
url="https://projects.gnome.org/gnomeradio/"
license=('GPL')
arch=('i686' 'x86_64' 'mips64el')
install=gnomeradio.install
depends=(libgnome-media-profiles lirc-utils hicolor-icon-theme)
makedepends=(gnome-doc-utils intltool gnome-vfs libgnomeui v4l-utils)
source=(https://launchpad.net/$pkgname/stable/$pkgver/+download/$pkgname-$pkgver.tar.gz
$(_debfile "$pkgname" "$_debver").debian.tar.gz)
prepare() {
cd "$srcdir/$pkgname-$pkgver"
while read -r patchfile; do
patch -p1 -i "$srcdir/debian/patches/$patchfile"
done <"$srcdir/debian/patches/series"
autoconf
}
build() {
cd "$srcdir/$pkgname-$pkgver"
LIBS=-lm ./configure --prefix=/usr --sysconfdir=/etc --disable-scrollkeeper \
--disable-install-schemas
make
}
package () {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
mkdir "$pkgdir"/usr/share/pixmaps
install data/icons/scalable/gnomeradio.svg "$pkgdir"/usr/share/pixmaps/gnomeradio.svg
}
md5sums=('26f07c432dffeebec3cc904f99295427'
'019ce748f8463d3eaebbb3e88d18d3e0')
|