summaryrefslogtreecommitdiff
path: root/community/amsn/PKGBUILD
blob: b98c0165878b2a026c89f328701fc86a1b9cffa3 (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
# $Id: PKGBUILD 63498 2012-02-05 11:51:24Z ibiru $
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Jeff Mickey <j@codemac.net>

pkgname=amsn
pkgver=0.98.4
pkgrel=2
pkgdesc="MSN client written in Tcl/Tk"
arch=('i686' 'x86_64' 'mips64el')
url="http://amsn.sourceforge.net/"
license=('GPL2')
depends=('tk' 'tls')
makedepends=('libjpeg' 'libpng' 'farsight2' 'libv4l')
optdepends=('farsight2: for video conferencing')
changelog=$pkgname.changelog
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}-src.tar.bz2 amsn-0.98.4-libpng15.patch amsn-0.98.4-v4l2.patch)
md5sums=('96fd20e8709ced4443432d125a5e0a5a'
         '182eef321e78632499c24b3009c085ad'
         '02d4ec8faed521387d6e44481f43c91a')

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

  # patch for libpng15
  patch -Np0 -i $srcdir/amsn-0.98.4-libpng15.patch

  # patch for linux kernel header changes
  patch -Np0 -i $srcdir/amsn-0.98.4-v4l2.patch
  # python2 fix
  for file in lang/missing.py plugins/music/infosongbird; do
      sed -i 's_/usr/bin/env python_/usr/bin/env python2_' ${file}
  done

  ./configure --prefix=/usr
  make
}

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

  make DESTDIR=${pkgdir} install
}