summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 12952253b0eaeb9ac9540d4cc300d0d552eb21e7 (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
# Maintainer: Sergey Shatunov <me@prok.pw>

pkgname=libsrs_alt
pkgver=1.0
pkgrel=1
pkgdesc="SRS supporting library (mainly used in exim)"
arch=('i686' 'x86_64')
url="http://opsec.eu/src/srs/"
license=('GPL')
depends=('glibc')
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

  install -Dm644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}