talimat 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Description: TCL için bir GUI araç seti.
  2. # URL: http://www.tcl.tk/
  3. # Packager: milisarge
  4. # Depends on: tcl xorg-fontconfig xorg-libxft xorg-libxscrnsaver
  5. name=tk
  6. version=8.6.6
  7. release=1
  8. source=(http://downloads.sourceforge.net/project/tcl/Tcl/$version/$name$version-src.tar.gz)
  9. build() {
  10. cd $name$version/unix
  11. ./configure \
  12. --prefix=/usr \
  13. --mandir=/usr/share/man \
  14. --enable-gcc \
  15. --enable-shared \
  16. --enable-xft
  17. make
  18. make MKLINKS_FLAGS="-s" INSTALL_ROOT=$PKG install install-private-headers
  19. cp ../generic/*.h $PKG/usr/include/
  20. cp tkUnixPort.h $PKG/usr/include/tkPort.h
  21. cp tkUnixDefault.h $PKG/usr/include/tkDefault.h
  22. cp tkUnixInt.h $PKG/usr/include/tkInt.h
  23. # remove $SRC traces
  24. sed \
  25. -e "s|$SRC/tk$version/unix|/usr/lib|g" \
  26. -e "s|$SRC/tk$version|/usr/include|g" \
  27. -i $PKG/usr/lib/tkConfig.sh
  28. rm -r $PKG/usr/lib/tk${version%.*}/demos
  29. rm $PKG/usr/lib/tk${version%.*}/images/README
  30. ln -s wish${version%.*} $PKG/usr/bin/wish
  31. ln -s libtk${version%.*}.so $PKG/usr/lib/libtk.so
  32. ln -s libtkstub${version%.*}.a $PKG/usr/lib/libtkstub.a
  33. chmod -R u+w $PKG/usr/share/man
  34. }