diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-09-04 09:43:04 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-09-04 09:43:04 +0000 |
commit | 6e177c1b4a005ddb2b759427441624e186a90593 (patch) | |
tree | bdc46a1bceae57b9b721e746d3dfa38c53bb7dc9 | |
parent | 143fcae78e7b5ce0623366339466ba555b2af27a (diff) | |
download | aports-6e177c1b4a005ddb2b759427441624e186a90593.tar.bz2 aports-6e177c1b4a005ddb2b759427441624e186a90593.tar.xz |
main/pingu: modernize
-rw-r--r-- | main/pingu/APKBUILD | 28 |
1 files changed, 4 insertions, 24 deletions
diff --git a/main/pingu/APKBUILD b/main/pingu/APKBUILD index e67eb0b780..5f8f21f343 100644 --- a/main/pingu/APKBUILD +++ b/main/pingu/APKBUILD @@ -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 |