summaryrefslogtreecommitdiff
path: root/acoc/Pkgfile
blob: 6e9e33b45afb416536ea21e2e32eb3bb7703d5ac (plain)
    1 # Description:  Arbitrary Command Output Colourer
    2 # URL:          http://www.caliban.org/ruby/acoc.shtml
    3 # Maintainer:   Bartlomiej Palmowski, maks1k at wp dot pl
    4 # Depends on:   ruby
    5 
    6 name=acoc
    7 version=0.7.1
    8 release=1
    9 source=(http://www.caliban.org/files/ruby/$name-$version.tar.gz)
   10 
   11 build() {
   12     local SITELIBDIR=$(ruby -r rbconfig -e 'puts Config::CONFIG["sitelibdir"]')
   13     cd $name-$version
   14     # avoid potential file conflict, .footprint may differ!
   15     [[ -s $SITELIBDIR/term/ansicolor.rb ]] ||
   16         make SITELIBDIR=$PKG$SITELIBDIR extra
   17     sed -i -e '/-install -d $(PREFIX)/s|/bin|/usr/bin|' -e \
   18 	'/install -m 0755 acoc $(PREFIX)/s|/bin|/usr/bin|' Makefile
   19     make PREFIX=$PKG
   20     #manpages
   21     install -D -m 0644 $name.1 $PKG/usr/man/man1/$name.1
   22     install -D -m 0644 $name.conf.5 $PKG/usr/man/man5/$name.conf.5
   23     # permissions fix
   24     chmod 0644 $PKG/etc/$name.conf
   25 }

Generated by cgit