iglunix/pkgs/velox/build.sh

30 lines
515 B
Bash
Raw Normal View History

2021-04-02 15:14:25 +00:00
pkgname=velox
pkgver=master
fetch() {
curl -L "https://github.com/michaelforney/velox/archive/refs/heads/master.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
cp ../config.mk .
cp ../velox.conf .
}
build() {
cd $pkgname-$pkgver
cp ../config.mk .
cp ../velox.conf .
gmake PREFIX=/usr CC=cc
}
package() {
cd $pkgname-$pkgver
gmake install DESTDIR=$pkgdir PREFIX=/usr
install -d $pkgdir/etc
install -Dm644 velox.conf $pkgdir/etc/
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}