summaryrefslogtreecommitdiff
path: root/extra/libmsn/PKGBUILD
blob: 21eace85962e52ec6ff3e04051e89ab26d69e47a (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
# $Id: $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Charly Ghislain <charlyghislain@gmail.com>

pkgname=libmsn
pkgver=4.1
pkgrel=2
pkgdesc="A reusable, open-source, fully documented library for connecting to Microsoft's MSN"
url="http://sourceforge.net/projects/libmsn/"
arch=('i686' 'x86_64' 'mips64el')
license=('GPL2')
depends=('openssl')
makedepends=('cmake')
source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2"
	'openssl1.patch')
md5sums=('769d3cf0e5625263fbc23321c1ddfcb0'
	'c8d7e2113d967a1d38a531e9fe8e7861')

build() {
  cd ${srcdir}
  patch -Np0 -i ${srcdir}/openssl1.patch || return 1
  mkdir build
  cd build
  cmake ../${pkgname}-${pkgver} \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release || return 1
  make || return 1
}

package() {
  cd ${srcdir}/build
  make DESTDIR=${pkgdir} install
}