1 # Contributor: Muhammad 'MJ' Jassim <UnbreakableMJ@gmail.com>
6 pkgdesc="Yet Another RSS Reader for GNOME notification area."
8 url="http://yarssr.sourceforge.net/"
10 depends=('gtk2-perl' 'glade-perl' 'perl-gtk2-trayicon' 'gnome-vfs' \
11 'perl-xml-rss' 'gnome-perl' 'perl-locale-gettext')
13 conflicts=('yarssr-svn')
14 source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz \
16 md5sums=('1825b214043c8d37fc8bad6935f0137a' \
17 'ee7f312f9ecdcf13f8f1da0a7ce79d5c')
20 cd ${startdir}/src/${pkgname}-${pkgver} || return 1
21 mkdir -p ${startdir}/pkg/usr/build
23 perl -ne 's!\@PREFIX\@!/usr!g ; s!\@LIBDIR\@!/usr/lib/yarssr!g ; print' < src/yarssr > ${startdir}/pkg/usr/build/yarssr
25 mkdir -p ${startdir}/pkg/usr/build/locale/en/LC_MESSAGES
26 msgfmt -o ${startdir}/pkg/usr/build/locale/en/LC_MESSAGES/yarssr.mo src/po/en.po
28 mkdir -p ${startdir}/pkg/usr/bin \
29 ${startdir}/pkg/usr/share \
30 ${startdir}/pkg/usr/lib/${pkgname} \
31 ${startdir}/pkg/usr/share/locale/en/LC_MESSAGES \
32 ${startdir}/pkg/usr/share/applications
34 echo "Copying lib files to ${startdir}/pkg/usr/lib"
35 cp -Rp ${startdir}/src/${pkgname}-${pkgver}/lib/* \
36 ${startdir}/pkg/usr/lib/${pkgname}/ || return 1
37 echo "Copying share files to ${startdir}/pkg/usr/share"
38 cp -Rp ${startdir}/src/${pkgname}-${pkgver}/share/* \
39 ${startdir}/pkg/usr/share/ || return 1
41 find ${startdir}/pkg/usr/share -type f -exec chmod 644 "{}" \;
42 find ${startdir}/pkg/usr/lib/${pkgname} -type f -exec chmod 644 "{}" \;
44 install -m 0644 ${startdir}/pkg/usr/build/locale/en/LC_MESSAGES/yarssr.mo \
45 ${startdir}/pkg/usr/share/locale/en/LC_MESSAGES/ || return 1
46 install -m 0755 ${startdir}/pkg/usr/build/${pkgname} \
47 ${startdir}/pkg/usr/bin || return 1
48 install -m 0644 ${startdir}/src/${pkgname}.desktop \
49 ${startdir}/pkg/usr/share/applications || return 1
50 rm -rf ${startdir}/pkg/usr/build || return 1