mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-10 11:11:40 +01:00
62 lines
1.6 KiB
Plaintext
62 lines
1.6 KiB
Plaintext
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
|
|
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
|
|
pkgname=libotr
|
|
pkgver=4.1.1
|
|
pkgrel=0
|
|
pkgdesc="Off The Record Messaging, an encryption library for secure IM conversations"
|
|
url="http://otr.cypherpunks.ca/"
|
|
arch="all"
|
|
license="LGPL2+"
|
|
depends=
|
|
depends_dev="libgcrypt-dev"
|
|
makedepends="$depends_dev"
|
|
install=""
|
|
subpackages="$pkgname-dev $pkgname-doc:doc $pkgname-tools:tools"
|
|
source="http://www.cypherpunks.ca/otr/libotr-$pkgver.tar.gz"
|
|
|
|
_builddir="$srcdir/libotr-$pkgver"
|
|
prepare() {
|
|
local i
|
|
cd "$_builddir"
|
|
update_config_sub || return 1
|
|
for i in $source; do
|
|
case $i in
|
|
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
|
|
esac
|
|
done
|
|
}
|
|
|
|
build() {
|
|
cd "$_builddir"
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
|| return 1
|
|
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() {
|
|
default_doc
|
|
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="dac5a8778a35f674c046ddf5d97e4d81 libotr-4.1.1.tar.gz"
|
|
sha256sums="8b3b182424251067a952fb4e6c7b95a21e644fbb27fbd5f8af2b2ed87ca419f5 libotr-4.1.1.tar.gz"
|
|
sha512sums="c957206235b9f627542f23a645c822ea1b318d83fa655f41ed8d9a3c0dddf30b88f0ca82060026af155e48ecb13969dc9270831f20304669794151f666ae5cb0 libotr-4.1.1.tar.gz"
|