summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
Diffstat (limited to 'pcr')
-rw-r--r--pcr/tktreectrl/PKGBUILD24
1 files changed, 11 insertions, 13 deletions
diff --git a/pcr/tktreectrl/PKGBUILD b/pcr/tktreectrl/PKGBUILD
index b98984fb6..b4c6b874f 100644
--- a/pcr/tktreectrl/PKGBUILD
+++ b/pcr/tktreectrl/PKGBUILD
@@ -1,5 +1,3 @@
-# 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
@@ -7,35 +5,35 @@ pkgver=2.4.1
pkgrel=1
_tkver=8.6.0
pkgdesc="A flexible listbox widget for Tk."
-arch=('i686' 'x86_64')
+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')
+source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz")
+sha256sums=('c2d19cfc7ce8b150cb50a6b63dc6327c91fb71f76b4f2947e0334a15d5f869d3')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
+ export CFLAGS="$CFLAGS -I/usr/include/tk-private/generic -I/usr/include/tk-private/unix"
+
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
+
+ #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