diff options
Diffstat (limited to 'unmaintained/libstrophe/APKBUILD')
-rw-r--r-- | unmaintained/libstrophe/APKBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/unmaintained/libstrophe/APKBUILD b/unmaintained/libstrophe/APKBUILD new file mode 100644 index 0000000000..6da6326f2f --- /dev/null +++ b/unmaintained/libstrophe/APKBUILD @@ -0,0 +1,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" |