summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0355e5ada846a89795b87eb8b0019632b18818b8 (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
# Maintainer: Peter Mattern <pmattern at arcor dot de>

_pkgname=wxgtk
pkgname=$_pkgname-git
pkgver=r62004.4775853
pkgrel=1
pkgdesc='Cross-Platform GUI Library - GTK+ port'
arch=('i686' 'x86_64')
url='https://www.wxwidgets.org'
license=('custom: wxWindows Library Licence')
depends=('gtk3' 'webkitgtk' 'libmspack' 'gst-plugins-bad' 'libnotify')
makedepends=('git' 'cppunit' 'glu')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("${_pkgname}::git+https://github.com/wxWidgets/wxWidgets.git")
sha256sums=("SKIP")

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

build() {
  cd $_pkgname
  ./autogen.sh
  ./configure --prefix=/usr --with-gtk=3 --enable-stl --with-libmspack
  make
  make -C locale allmo
}

package() {
  cd $_pkgname
  make DESTDIR="$pkgdir" install
  install -D -m644 docs/licence.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
}