diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-05-14 12:55:24 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-05-14 12:55:24 +0000 |
commit | abb314d550cd23f6ad4a8625e0e0b3865fdb9642 (patch) | |
tree | 85fdfd72b9d52fc856441e758c53eee7b1f7135d | |
parent | 8260478bd02cc1b13104dcc71ea8618afdcb14a1 (diff) | |
download | alpine_aports-abb314d550cd23f6ad4a8625e0e0b3865fdb9642.tar.bz2 alpine_aports-abb314d550cd23f6ad4a8625e0e0b3865fdb9642.tar.xz alpine_aports-abb314d550cd23f6ad4a8625e0e0b3865fdb9642.zip |
main/libotr: upgrade to 4.0.0
-rw-r--r-- | main/libotr/APKBUILD | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/main/libotr/APKBUILD b/main/libotr/APKBUILD new file mode 100644 index 0000000000..1150e948c7 --- /dev/null +++ b/main/libotr/APKBUILD | |||
@@ -0,0 +1,57 @@ | |||
1 | # Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com> | ||
2 | # Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com> | ||
3 | pkgname=libotr | ||
4 | pkgver=4.0.0 | ||
5 | pkgrel=0 | ||
6 | pkgdesc="Off The Record Messaging, an encryption library for secure IM conversations" | ||
7 | url="http://otr.cypherpunks.ca/" | ||
8 | arch="all" | ||
9 | license="LGPL" | ||
10 | depends= | ||
11 | depends_dev="libgcrypt-dev" | ||
12 | makedepends="$depends_dev" | ||
13 | install="" | ||
14 | subpackages="$pkgname-dev $pkgname-doc:doc $pkgname-tools:tools" | ||
15 | source="http://www.cypherpunks.ca/otr/libotr-$pkgver.tar.gz" | ||
16 | |||
17 | _builddir="$srcdir/libotr-$pkgver" | ||
18 | prepare() { | ||
19 | local i | ||
20 | cd "$_builddir" | ||
21 | for i in $source; do | ||
22 | case $i in | ||
23 | *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; | ||
24 | esac | ||
25 | done | ||
26 | } | ||
27 | |||
28 | build() { | ||
29 | cd "$_builddir" | ||
30 | ./configure --prefix=/usr | ||
31 | make || return 1 | ||
32 | } | ||
33 | |||
34 | package() { | ||
35 | cd "$_builddir" | ||
36 | make DESTDIR="$pkgdir" install || return 1 | ||
37 | rm "$pkgdir"/usr/lib/*.la || return 1 | ||
38 | } | ||
39 | |||
40 | tools() { | ||
41 | license="GPL" | ||
42 | depends="$pkgname" | ||
43 | cd "$_builddir" | ||
44 | mkdir -p "$subpkgdir"/usr/ | ||
45 | mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ | ||
46 | } | ||
47 | |||
48 | doc() { | ||
49 | depends="$pkgname" | ||
50 | cd "$_builddir" | ||
51 | install -Dm0644 Protocol-v2.html "$subpkgdir"/usr/share/doc/$pkgname/Protocol-v2.html | ||
52 | install -Dm0644 README "$subpkgdir"/usr/share/doc/$pkgname/README | ||
53 | } | ||
54 | |||
55 | md5sums="00979dca82d70383fcd1b01f3974363c libotr-4.0.0.tar.gz" | ||
56 | sha256sums="3f911994409898e74527730745ef35ed75c352c695a1822a677a34b2cf0293b4 libotr-4.0.0.tar.gz" | ||
57 | sha512sums="3f0a549bb615d6ff486db0efcc82fc6ad17c5860740c760315d5c81d298b00648d11f9da69c65b9859111d2150e4d10062aeb8611810f11e1da1ce62f07f02b6 libotr-4.0.0.tar.gz" | ||