aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/libstrophe/APKBUILD
blob: 6da6326f2f2f355dffc5929e6e18ebbf627f37f4 (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
# Maintainer:
# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>

pkgname=libstrophe
pkgver=0.8.6
pkgrel=0
epoch=1
pkgdesc='Simple, lightweight C library for writing XMPP clients'
arch=all
url='http://strophe.im/libstrophe/'
license='MIT'
depends=
makedepends='openssl-dev expat-dev check-dev autoconf automake libtool'
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/strophe/libstrophe/archive/$pkgver.tar.gz"

prepare() {
  cd "$srcdir"/$pkgname-$pkgver
  ./bootstrap.sh || return 1
}

build() {
  cd "$srcdir"/$pkgname-$pkgver
  ./configure --prefix=/usr || return 1
  make || return 1
  make check || return 1
}

package() {
  cd "$srcdir"/$pkgname-$pkgver
  make DESTDIR="$pkgdir" install || return 1
  install -Dm644 MIT-LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-MIT
}

md5sums="5ab28dc86c47177819ca49ed9c0041e0  libstrophe-0.8.6.tar.gz"
sha256sums="a2158134381e544a7697e9379f45abe18da817cd05eb3272eabec2151599d702  libstrophe-0.8.6.tar.gz"
sha512sums="5c93a199d223d0995c99688dcd9af1586e17ce825d0df3cdac33498c87af62a41a60b4a727910754f064541c64f9b79d5db899a265a1cc3d9c4380e42b525e5a  libstrophe-0.8.6.tar.gz"