PKGBUILD 956 B

123456789101112131415161718192021222324252627282930313233343536
  1. # Maintainer: Lukas Fleischer <lfleischer@archlinux.org>
  2. # Contributor: Roman Kyrylych <roman@archlinux.org>
  3. # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
  4. _pkgname=libesmtp
  5. pkgver=1.0.6
  6. pkgname=$_pkgname-lukeshu
  7. provides=($_pkgname=$pkgver)
  8. conflicts=($_pkgname)
  9. pkgrel=5
  10. pkgdesc='A library to manage posting mail to a preconfigured MTA.'
  11. arch=('i686' 'x86_64')
  12. url='http://www.stafford.uklinux.net/libesmtp/'
  13. license=('LGPL')
  14. depends=('openssl')
  15. source=("http://pkgs.fedoraproject.org/repo/pkgs/$_pkgname/$_pkgname-$pkgver.tar.bz2/bf3915e627fd8f35524a8fdfeed979c8/$_pkgname-$pkgver.tar.bz2")
  16. md5sums=('bf3915e627fd8f35524a8fdfeed979c8')
  17. prepare() {
  18. cd "${srcdir}/${_pkgname}-${pkgver}"
  19. sed -i s/SSL_library_init/OPENSSL_init_ssl/ configure.ac configure
  20. }
  21. build() {
  22. cd "${srcdir}/${_pkgname}-${pkgver}"
  23. ./configure --prefix=/usr --with-openssl
  24. make
  25. }
  26. package() {
  27. cd "${srcdir}/${_pkgname}-${pkgver}"
  28. make DESTDIR="${pkgdir}" install
  29. }