# Contributor:
# Maintainer: 7heo <7heo@mail.com>
pkgname=irssi-otr
pkgver=1.0.2
pkgrel=0
pkgdesc="LibOTR functionality in Irssi."
url="https://github.com/cryptodotis/irssi-otr"
arch="all"
license="GPL-2.0"
depends="irssi"
makedepends="libotr-dev irssi-dev automake autoconf libtool glib-dev libgcrypt-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/cryptodotis/$pkgname/archive/v$pkgver.tar.gz"

build() {
	cd "$builddir"
	./bootstrap
	./configure --prefix="/usr"
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

md5sums="5f217dade49593f8505fecc5a5d322d2  irssi-otr-1.0.2.tar.gz"
sha256sums="4619208b9c9171aa97a41960b3e892390b6473e2988a056b9fe8e110daa1ae9c  irssi-otr-1.0.2.tar.gz"
sha512sums="983bc861e5d38774305425b412368689f17a1e11298bcef49b9f0ea7a2275b1443ba2ce0a9ef9866e537097f1c6c00e9264085f5cd711f0d78faf252fba18d2f  irssi-otr-1.0.2.tar.gz"
