# Maintainer: Luke Shumaker <lukeshu@parabola.nu>
# Maintainer (aur): Sergey Shatunov <me@prok.pw>

pkgname=libsrs_alt
pkgver=1.0
pkgrel=1
pkgdesc="Alternative implementation of the Sender Rewriting Scheme (SRS) for SMTP forwarding"
arch=('i686' 'x86_64' 'armv7h')
url="https://opsec.eu/src/srs/"
license=('GPL')
source=("https://opsec.eu/src/srs/${pkgname}-${pkgver}.tar.bz2")
sha1sums=('09a4b82cec25044c0883e382060451ef757eb530')

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

  ./configure --prefix=/usr
  make
}

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

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

  make DESTDIR="${pkgdir}" install
}
