summaryrefslogtreecommitdiff
path: root/community/adesklets/PKGBUILD
blob: 6a2a10ade7f261b3eda9fdbfb4889d1f65c29e7e (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
# $Id: PKGBUILD 26100 2010-09-13 15:56:15Z schuay $
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Fubar

pkgname=adesklets
pkgver=0.6.1
pkgrel=11
pkgdesc="An imlib2-based system to have interactive 'desklets'."
arch=('i686' 'x86_64' 'mips64el')
url="http://adesklets.sourceforge.net/"
license=('GPL2')
depends=('imlib2' 'fontconfig' 'python2' 'perl' 'ttf-bitstream-vera' 'libx11')
install=$pkgname.install
options=('!emptydirs')
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2 \
        fontconfig-2.4.patch)

md5sums=('cd390c9398449c5566033e2e4792bccb'
         '0374aec97670c90713fcabc2710e2160')

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

  #patch for fontconfig => 2.4
  patch -Np0 -i ${srcdir}/fontconfig-2.4.patch

  autoreconf
  ./configure --prefix=/usr

  #makefile Fix
  sed -i 's/\/bin\/sh//' doc/Makefile

  #python2 fix
  for file in checkin installer submit; do
      sed -i 's_/usr/bin/env python_/usr/bin/env python2_' utils/${pkgname}_${file}
  done

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

  make DESTDIR=${pkgdir} INSTALLDIRS=vendor install

  rm ${pkgdir}/usr/share/info/dir

  #remove the font stuff
  rm -f ${pkgdir}/usr/share/adesklets/{FONT_LICENSE,Vera.ttf}

  find ${pkgdir} -name '.packlist' -exec rm  '{}' \;
  find ${pkgdir} -name 'perllocal.pod' -exec rm  '{}' \;
}