summaryrefslogtreecommitdiff
path: root/~lukeshu/libesmtp-lukeshu/PKGBUILD
blob: daa9b8c4dcb6105f6c051078706346d9a28eda95 (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
# Maintainer: Lukas Fleischer <lfleischer@archlinux.org>
# Contributor: Roman Kyrylych <roman@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

_pkgname=libesmtp
pkgver=1.0.6
pkgname=$_pkgname-lukeshu
provides=($_pkgname=$pkgver)
conflicts=($_pkgname)
pkgrel=5
pkgdesc='A library to manage posting mail to a preconfigured MTA.'
arch=('i686' 'x86_64')
url='http://www.stafford.uklinux.net/libesmtp/'
license=('LGPL')
depends=('openssl')
source=("http://pkgs.fedoraproject.org/repo/pkgs/$_pkgname/$_pkgname-$pkgver.tar.bz2/bf3915e627fd8f35524a8fdfeed979c8/$_pkgname-$pkgver.tar.bz2")
md5sums=('bf3915e627fd8f35524a8fdfeed979c8')

prepare() {
  cd "${srcdir}/${_pkgname}-${pkgver}"

  sed -i s/SSL_library_init/OPENSSL_init_ssl/ configure.ac configure
}

build() {
  cd "${srcdir}/${_pkgname}-${pkgver}"

  ./configure --prefix=/usr --with-openssl
  make
}

package() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
}