summaryrefslogtreecommitdiff
path: root/pcr/irssi-otr/PKGBUILD
blob: aebe8b534bff2d140d472257d5ba97ce59cca466 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer (Arch): Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor (Arch): Dominik George <nik@naturalnet.de>
# Contributor (Arch): quantax -- contact via Arch Linux forum or AUR
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>

pkgname=irssi-otr
pkgver=1.0.1
pkgrel=1.3
pkgdesc="Off-the-Record Messaging (OTR) for the Irssi IRC client"
url="https://github.com/cryptodotis/irssi-otr"
arch=('i686' 'x86_64')
license=('GPL2')
depends=('irssi' 'libotr' 'glib2')
source=(${pkgname}-${pkgver}.tar.bz2::https://www.otr.im/dist/irssi-otr/irssi-otr-${pkgver}.tar.bz2
        d03ab59.patch)
sha512sums=('f7a2b04a1bd43b2436abe3592d8110acbe719575e295e789fd7ad92c87d4dbd99155439a6b1da349a3f86418a451fba2bfb1b085915e85688b5e214c1e9de0e2'
            'ad8d6c37c8acea0c30aae41b82289ffbadee2b4af09b57b0bad0855aff1390cc9ecc31f69379d8bf2e06cac439b284608d2f3e909964a58e204d928e49b51270')

prepare() {
  cd ${pkgname}-${pkgver}
  patch -Np1 -i "$srcdir/d03ab59.patch"
  autoreconf -fiv
}

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

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
  install -Dm 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README"
}

# vim: ts=2 sw=2 et: