diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-07-11 00:43:42 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-07-11 00:43:42 -0300 |
commit | d8cd25bf41052081fe22a591a90f28c505ca921c (patch) | |
tree | f716a2a5d8b6a65940730c3c96055e85239d40f3 /pcr/tktreectrl/PKGBUILD | |
parent | 6840b13d4c404ca329085bee3ace62cebcea5c84 (diff) | |
parent | 56a62f9b9bb33c6b97dc9a140ba15531a6fd7761 (diff) |
Merge branch 'master' of ssh://projects.parabola.nu:1863/~git/abslibre/abslibre
Diffstat (limited to 'pcr/tktreectrl/PKGBUILD')
-rw-r--r-- | pcr/tktreectrl/PKGBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/pcr/tktreectrl/PKGBUILD b/pcr/tktreectrl/PKGBUILD new file mode 100644 index 000000000..b98984fb6 --- /dev/null +++ b/pcr/tktreectrl/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer (Arch): Mihai Militaru <mihai dot militaru at xmpp dot ro> +# Contributor (Arch): Foucault <foucault.online@gmail.com> +# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> + +pkgname=tktreectrl +pkgver=2.4.1 +pkgrel=1 +_tkver=8.6.0 +pkgdesc="A flexible listbox widget for Tk." +arch=('i686' 'x86_64') +url="http://tktreectrl.sourceforge.net/" +license=('custom') +depends=('tcl' 'tk' 'libx11') +source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz" +"http://downloads.sourceforge.net/sourceforge/tcl/tk${_tkver}-src.tar.gz") +sha1sums=('5cd7bdfd81ba8a9faf3d842ed96f5f448111a1c9' + 'c42e160285e2d26eae8c2a1e6c6f86db4fa7663b') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + + if [ "$CARCH" = "x86_64" ]; then + ./configure --prefix=/usr --enable-threads --enable-64bit + else + ./configure --prefix=/usr --enable-threads --disable-64bit + fi + + sed -i \ + "s#-I\"/usr/include\" -I\"/usr/include\"#\ + -I\"/usr/include\" -I\"../tk${_tkver}/generic\" -I\"../tk${_tkver}/unix\"#\ + g" Makefile + + make +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + + make DESTDIR=${pkgdir} install + + mkdir -p ${pkgdir}/usr/share/doc/tktreectrl + mv ${pkgdir}/usr/lib/treectrl${pkgver}/htmldoc ${pkgdir}/usr/share/doc/tktreectrl/ + + # install license + install -Dm644 license.terms ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE +} |