summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 04c186e7b87787ac0ada9bfe8b078ad1ffdba9a0 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com
# Contributor: Felipe Weckx <felipe@weckx.net>

set -u
pkgname='libtelnet'
pkgver='0.23'
pkgrel='1'
pkgdesc='Simple RFC-complient TELNET implementation as a C library.'
arch=('i686' 'x86_64')
url='http://github.com/seanmiddleditch/libtelnet'
license=('custom')
depends=('zlib')
makedepends=('make' 'patch' 'libtool' 'pkg-config' 'autoconf' )
_srcdir="${pkgname}-${pkgver}"
source=(
  "${_srcdir}.tar.gz::https://github.com/seanmiddleditch/libtelnet/archive/${pkgver}.tar.gz"
)
md5sums=('dd84c031f190c11d2db78b6c0c055f8e')
sha256sums=('ef510d32f9131433cc4c8b6789e40087d515a187e55f8fdcd72a975c66d3a90b')

prepare() {
  set -u
  cd "${_srcdir}"
  set +u
}

build() {
  set -u
  cd "${_srcdir}"
  if [ ! -e 'ltmain.sh' ]; then
    libtoolize --force
  fi
  if [ ! -s 'configure' ]; then
    autoreconf -i
  fi
  if [ ! -s 'Makefile' ]; then
    ./configure --prefix='/usr'
  fi
  make
  set +u
}

package(){
  set -u
  cd "${_srcdir}"
  make DESTDIR="${pkgdir}" install

  install -Dm644 'COPYING' -t "${pkgdir}/usr/share/licenses/${pkgname}/"
  set +u
}
set +u