summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8f7a253662e23e48bde5392ac357d0db4c7e14a2 (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
# Maintainer: Roman Mishin <xtradev (a) yandex (.) ru>

pkgname=tktreectrl-git
pkgver=2.4.2
pkgrel=1
pkgdesc='Multi-column hierarchical listbox widget for the Tk GUI toolkit'
arch=('x86_64')
url='https://github.com/apnadkarni/tktreectrl'
license=('custom')
depends=('tk' 'libx11')
makedepends=('git')
provides=('tktreectrl')
conflicts=('tktreectrl')
install='.INSTALL'
source=("git+$url.git"
        'arch-paths.patch')
md5sums=('SKIP'
         '82fa47b8779466ccd9740e5aad3e47cf')

pkgver() {
  sed -nr 's/PACKAGE_PATCHLEVEL=(.+)/\1/p' "$srcdir/tktreectrl/configure"
}

prepare() {
  cd "$srcdir/tktreectrl"
  git apply "$srcdir/arch-paths.patch"
  sh ./configure --prefix=/usr --enable-threads --enable-64bit
}

build() {
  cd "$srcdir/tktreectrl"
  make
}

package() {
  cd "$srcdir/tktreectrl"
  make DESTDIR="$pkgdir" install
  install -Dm644 license.terms "$pkgdir/usr/share/licenses/tktreectrl/LICENSE"
}