summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8bde08b2b4a8cc3f2a9de506986b1c1381554b92 (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
# Maintainer: Luca Weiss <luca (at) z3ntu (dot) xyz>

pkgname=qt2-git
_pkgname=qt2
pkgver=2.3.2.r54.e33b3d1
_pkgver=2.3.2
pkgrel=1
pkgdesc="Porting Qt2 to modern cmake to use it for KDE 2 port"
arch=('i686' 'x86_64')
url="https://github.com/sandsmark/qt2"
license=('GPL2')
depends=('libxft' 'libsm' 'libgl' 'freeglut' 'libmng' 'libjpeg-turbo' 'libxmu' 'glu')
makedepends=('git' 'cmake' 'byacc')
provides=('qt2')
conflicts=('qt2')
source=("git+https://invent.kde.org/sandsmark/qt2.git")
sha256sums=('SKIP')

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

prepare() {
  mkdir -p build
}

build() {
  cd build
  cmake ../$_pkgname \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib
}

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

# vim:set ts=2 sw=2 et: