Commit 6e177c1b authored by Natanael Copa's avatar Natanael Copa

main/pingu: modernize

parent 143fcae7
......@@ -14,16 +14,7 @@ source="pingu-$pkgver.tar.gz::https://github.com/ncopa/pingu/archive/v$pkgver.ta
pingu.initd
"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$_builddir"
......@@ -31,23 +22,12 @@ build() {
--prefix=/usr \
--localstatedir=/var \
--sysconfdir=/etc \
--with-luapc=lua \
|| return 1
make || return 1
}
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
--with-luapc=lua
make
}
package() {
cd "$_builddir"
cd "$builddir"
make DESTDIR="$pkgdir" install
install -m644 -D pingu.conf "$pkgdir"/etc/pingu/pingu.conf
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment