diff options
author | Roman Mishin | 2020-05-04 15:18:36 +0700 |
---|---|---|
committer | Roman Mishin | 2020-05-04 15:18:36 +0700 |
commit | 9e64bb94e80d1cc64075a452e84282485f8df961 (patch) | |
tree | 08094268d98594cb67fc42341f99f2c1734303ff | |
download | aur-9e64bb94e80d1cc64075a452e84282485f8df961.tar.gz |
created
-rw-r--r-- | .INSTALL | 11 | ||||
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 36 | ||||
-rw-r--r-- | arch-paths.patch | 77 |
4 files changed, 143 insertions, 0 deletions
diff --git a/.INSTALL b/.INSTALL new file mode 100644 index 000000000000..fa2858afaedc --- /dev/null +++ b/.INSTALL @@ -0,0 +1,11 @@ +# arg 1: the new package version +post_install() { + pkgver=$(echo $1 | sed -r 's/-[0-9]+//') + echo -e "\n$(tput setaf 2;tput bold)run:$(tput sgr0) /usr/lib/tktreectrl-$pkgver/demos/demo.tcl\n" +} + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + post_install $1 +} diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a061308fe541 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = tktreectrl-git + pkgdesc = Multi-column hierarchical listbox widget for the Tk GUI toolkit. + pkgver = 2.4.2 + pkgrel = 1 + url = https://github.com/apnadkarni/tktreectrl + install = .INSTALL + arch = x86_64 + license = custom + makedepends = gcc + makedepends = git + depends = tk + depends = libx11 + provides = tktreectrl + conflicts = tktreectrl + source = git+https://github.com/apnadkarni/tktreectrl.git + md5sums = SKIP + +pkgname = tktreectrl-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..dfc1da3038e9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# 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=('gcc' 'git') +provides=('tktreectrl') +conflicts=('tktreectrl') +install='.INSTALL' +source=("git+$url.git") +md5sums=('SKIP') + +pkgver() { + sed -nr 's/PACKAGE_PATCHLEVEL=(.+)/\1/p' "$srcdir/tktreectrl/configure" +} + +prepare() { + cd "$srcdir/tktreectrl" + git apply ../../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 -Dm444 license.terms "$pkgdir/usr/share/licenses/tktreectrl/LICENSE" +} diff --git a/arch-paths.patch b/arch-paths.patch new file mode 100644 index 000000000000..d6a0097b422f --- /dev/null +++ b/arch-paths.patch @@ -0,0 +1,77 @@ +diff --git a/Makefile.in b/Makefile.in +index ad667de..77c8681 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -78,7 +78,7 @@ includedir = @includedir@ + + DESTDIR = + +-PKG_DIR = $(PACKAGE_NAME)$(PACKAGE_PATCHLEVEL) ++PKG_DIR = tk$(PACKAGE_NAME)-$(PACKAGE_PATCHLEVEL) + pkgdatadir = $(datadir)/$(PKG_DIR) + pkglibdir = $(libdir)/$(PKG_DIR) + pkgincludedir = $(includedir)/$(PKG_DIR) +@@ -141,8 +141,8 @@ WISH = $(TCLSH_ENV) $(WISH_PROG) + + # The local includes must come first, because the TK_XINCLUDES can be + # just a comment +-INCLUDES = @PKG_INCLUDES@ \ +- @TCL_INCLUDES@ @TK_INCLUDES@ @TK_XINCLUDES@ ++INCLUDES = @PKG_INCLUDES@ @TCL_INCLUDES@ @TK_INCLUDES@ \ ++ @TK_XINCLUDES@ + + PKG_CFLAGS = @PKG_CFLAGS@ + +@@ -190,9 +190,9 @@ doc-x: + doc: + @echo "No docs to build" + +-install: all install-binaries install-libraries install-doc ++install: all install-binaries install-libraries install-doc install-demos + +-install-binaries: binaries install-lib-binaries install-bin-binaries ++install-binaries: binaries install-lib-binaries + @mkdir -p $(DESTDIR)$(pkglibdir) + $(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(pkglibdir) + @list='$(PKG_EXTRA_FILES)'; for p in $$list; do \ +@@ -224,8 +224,13 @@ install-doc-x: + done + + install-doc: install-doc-x +- mkdir -p $(DESTDIR)$(pkglibdir)/htmldoc +- cp $(srcdir)/doc/*.html $(DESTDIR)$(pkglibdir)/htmldoc ++ @mkdir -p $(DESTDIR)$(datadir)/doc/$(DIST_NAME) ++ @cp $(srcdir)/doc/treectrl.html $(DESTDIR)$(datadir)/doc/$(DIST_NAME) ++ @cp $(srcdir)/doc/What-is-New-in-TkTreeCtrl.html $(DESTDIR)$(datadir)/doc/$(DIST_NAME)/whatsnew.html ++ ++install-demos: ++ @chmod 755 $(srcdir)/demos/demo.tcl ++ @cp -r $(srcdir)/demos $(DESTDIR)$(pkglibdir) + + test: binaries libraries + @$(WISH) `@CYGPATH@ $(srcdir)/tests/all.tcl` $(TESTFLAGS) | cat +diff --git a/configure b/configure +index 22e5190..f05e80c 100644 +--- a/configure ++++ b/configure +@@ -5461,7 +5461,7 @@ $as_echo "${ac_cv_c_tkh}" >&6; } + + TK_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" + +- ++ TK_XINCLUDES='-I/usr/include/tk-private/generic/ -I/usr/include/tk-private/unix/' + + if test "${TEA_WINDOWINGSYSTEM}" != "x11"; then + # On Windows and Aqua, we need the X compat headers +diff --git a/demos/demo.tcl b/demos/demo.tcl +old mode 100644 +new mode 100755 +index f6da6ee..deeee9f +--- a/demos/demo.tcl ++++ b/demos/demo.tcl +@@ -1,4 +1,4 @@ +-#!/bin/wish84.exe ++#!/bin/wish + + # Copyright (c) 2002-2013 Tim Baker + |