summaryrefslogtreecommitdiff
path: root/kvirc-qt-git/PKGBUILD
blob: ba94a3bfe05d6279176d91e24b524b1cd9cd84de (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Maintainer: Deposite Pirate <dpirate at metalpunks dot info>
#
# Upstream: https://git.metalpunks.info/arch-ports

pkgname=kvirc-qt-git
pkgver=5.0.0.r7416.9b35d44fd
_pkgver=5.0.0
pkgrel=1
pkgdesc="Qt based IRC-Client"
arch=('i686' 'x86_64')
url="http://www.kvirc.net"
license=('GPL')
depends=('qt5-base' 'glibc' 'openssl' 'zlib' 'qt5-multimedia' 'qt5-svg' 'qt5-x11extras' 'qt5-webkit' 'enchant')
makedepends=('python2' 'gettext' 'doxygen' 'extra-cmake-modules' 'zsh' 'cmake' 'git'  'gettext')
conflicts=('kvirc4' 'kvirc')
provides=('kvirc' 'kvirc4')
source=("${pkgname}::git+https://github.com/kvirc/KVIrc.git")
sha256sums=('SKIP')

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

prepare(){
  cd "${srcdir}/${pkgname}"
  # Fix overlinking
  sed -e '/lcrypto/d' -i CMakeLists.txt
}

build() {
  cd "${srcdir}"
  rm -rf build
  mkdir build
  cd build
  cmake ../${pkgname} \
  -DCMAKE_INSTALL_PREFIX="/usr" \
  -DCMAKE_BUILD_TYPE:STRING="Release" \
  -DWANT_PERL="OFF" \
  -DWANT_GTKSTYLE="ON" \
  -DWANT_KDE="OFF" \
  -DWANT_PHONON="OFF" \
  -DWANT_OSS="OFF" \
  -DWANT_ESD="ON"
  make
}

package() {
  cd "${srcdir}/build"
  make DESTDIR="${pkgdir}" install
}