summaryrefslogtreecommitdiff
path: root/hexchat-otr-git/PKGBUILD
blob: ef87165e9d06c005b151f143dee9f103aa4dcad2 (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
# Maintainer: Deposite Pirate <dpirate at metalpunks dot info>
#
# Upstream: https://git.metalpunks.info/arch-ports

pkgname=hexchat-otr-git
pkgver=r50.ga7a6016
pkgrel=2
pkgdesc="OTR support for hexchat"
url="https://github.com/TingPing/hexchat-otr"
license=('GPL2')
arch=('i686' 'x86_64')
depends=('hexchat' 'libotr>=4.1.0')
makedepends=('git' 'gnome-common')
conflicts=('hexchat-otr')
provides=('hexchat-otr')
source=("${pkgname}::git+${url}")
md5sums=('SKIP')

pkgver() {
  cd "${pkgname}"
  printf "r%s.g%s" \
    "$(git rev-list --count HEAD)" \
    "$(git rev-parse --short HEAD)"
}

build() {
  cd "${pkgname}"
  ./autogen.sh
  CFLAGS="${CFLAGS}" ./configure --prefix="/usr"
  make
}

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