summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/bitlbee/APKBUILD15
-rw-r--r--testing/libotr/APKBUILD54
2 files changed, 64 insertions, 5 deletions
diff --git a/testing/bitlbee/APKBUILD b/testing/bitlbee/APKBUILD
index 138aaa6a1..a99c86673 100644
--- a/testing/bitlbee/APKBUILD
+++ b/testing/bitlbee/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
pkgname=bitlbee
pkgver=3.0.1
-pkgrel=1
+pkgrel=2
pkgdesc="An IRC to other chat networks gateway"
url="http://www.bitlbee.org/"
arch="all"
@@ -10,11 +10,12 @@ license="GPL-2"
depends=
makedepends="glib-dev openssl-dev"
install="$pkgname.post-install"
-subpackages="$pkgname-doc"
+subpackages="$pkgname-doc $pkgname-otr"
source="
http://get.bitlbee.org/src/$pkgname-$pkgver.tar.gz
- bitlbee.initd
- bitlbee.confd
+ $pkgname.initd
+ $pkgname.confd
+ $pkgname.post-install
"
_builddir="$srcdir/$pkgname-$pkgver"
@@ -30,7 +31,7 @@ prepare() {
build() {
cd "$_builddir"
- ./configure --ssl=openssl --prefix=/usr || return 1
+ ./configure --ssl=openssl --otr=plugin --prefix=/usr || return 1
make || return 1
}
@@ -43,6 +44,10 @@ package() {
install -m644 -D "$srcdir"/$pkgname.confd \
"$pkgdir"/etc/conf.d/$pkgname || return 1
}
+otr() {
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/bitlbee "$subpkgdir"/usr/lib
+}
md5sums="4d00c6e09859b653f955b16b988db0ac bitlbee-3.0.1.tar.gz
4c1e2903cb2f1010cdb941897de1ca23 bitlbee.initd
diff --git a/testing/libotr/APKBUILD b/testing/libotr/APKBUILD
new file mode 100644
index 000000000..b482f016a
--- /dev/null
+++ b/testing/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"