diff options
author | William Pitcock <nenolod@dereferenced.org> | 2011-01-21 20:58:56 -0600 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2011-01-21 20:58:56 -0600 |
commit | 487f42f4488698652bc8f6b986571276bff141b5 (patch) | |
tree | 3f2a90f17973601cdc72ae3e531f50c3d56a32d5 /main/libotr | |
parent | eab8d846bd01df8f38bb2e41149b929774f6957e (diff) | |
download | aports-487f42f4488698652bc8f6b986571276bff141b5.tar.bz2 aports-487f42f4488698652bc8f6b986571276bff141b5.tar.xz |
main/libotr: promote from testing
Diffstat (limited to 'main/libotr')
-rw-r--r-- | main/libotr/APKBUILD | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/main/libotr/APKBUILD b/main/libotr/APKBUILD new file mode 100644 index 000000000..b482f016a --- /dev/null +++ b/main/libotr/APKBUILD @@ -0,0 +1,54 @@ +# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com> +# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com> +pkgname=libotr +pkgver=3.2.0 +pkgrel=0 +pkgdesc="Off The Record Messaging, an encryption library for secure IM conversations" +url="http://otr.cypherpunks.ca/" +arch="all" +license="LGPL" +depends= +depends_dev="libgcrypt-dev" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev $pkgname-doc:doc $pkgname-tools:tools" +source="http://www.cypherpunks.ca/otr/$pkgname-$pkgver.tar.gz" + +_builddir="$srcdir/$pkgname-$pkgver" +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +tools() { + license="GPL" + depends="$pkgname" + cd "$_builddir" + mkdir -p "$subpkgdir"/usr/ + mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ +} + +doc() { + depends="$pkgname" + cd "$_builddir" + install -Dm0644 Protocol-v2.html "$subpkgdir"/usr/share/doc/$pkgname/Protocol-v2.html + install -Dm0644 README "$subpkgdir"/usr/share/doc/$pkgname/README +} + +md5sums="faba02e60f64e492838929be2272f839 libotr-3.2.0.tar.gz" |