# Description:  extract dominant colors from pictures
# URL:  http://git.2f30.org/colors/
# Maintainer:  z3bra <dev at z3bra dot org>
# Depends on: libpng 

name=colors
version=git-8edb183
release=3
source=
gitsource=git://git.2f30.org/colors

build() {
    if cd $name; then
        git reset --hard
        git pull $gitsource
    else
        git clone $gitsource $name
        cd $name
    fi

    git checkout $sversion
        
    make
    make DESTDIR=$PKG PREFIX=/usr MANPREFIX=/usr/share/man install

    cc bin/hex2col.c -o bin/hex2col
    cc bin/hexsort.c -o bin/hexsort
    cp bin/hex2col $PKG/usr/bin/hex2col
    cp bin/hexsort $PKG/usr/bin/hexsort
}
# vim: set ft=sh ts=4 et:
