talimat 834 B

12345678910111213141516171819202122232425262728293031323334
  1. # Tanım: Plan9 araçlarının unix uyarlaması
  2. # URL: http://tools.suckless.org/9base
  3. # Paketçi: Cihan_Alkan
  4. # Gerekler: python
  5. # Grup: sistem
  6. isim=9base
  7. surum=6
  8. devir=1
  9. kaynak=(http://dl.suckless.org/tools/$isim-$surum.tar.gz
  10. 9
  11. plan9.sh)
  12. derle() {
  13. cd $isim-$surum
  14. sed -i 's#^OBJTYPE\s.*$#OBJTYPE = x86_64#' config.mk
  15. sed -i 's#^PREFIX\s.*$#PREFIX = /opt/plan9#' config.mk
  16. sed -i 's#^CFLAGS\s*+=#CFLAGS += -DPLAN9PORT #' config.mk
  17. # Force dynamic linking. Several of the programs in 9base won't work
  18. # when statically linked against the latest glibc.
  19. sed -i '/-static/d' config.mk
  20. make
  21. make DESTDIR="$PKG" install
  22. install -m755 ../9 "$PKG/opt/plan9/bin/"
  23. install -D -m755 ../plan9.sh "$PKG/etc/profile.d/plan9.sh"
  24. install -D -m644 LICENSE "$PKG/usr/share/licenses/9base/LICENSE"
  25. }