diff options
author | Stuart Cardall <developer@it-offshore.co.uk> | 2015-12-29 16:00:35 +0000 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2015-12-31 18:52:35 +0100 |
commit | be528c477beaecbaeb8716bc6e5b6f09bded6a1f (patch) | |
tree | bfbac930509526edc5cb48f700cd65bbe97e2713 | |
parent | b5508db5a42502b03cb2bd9724dd44c24fb1a971 (diff) | |
download | aports-be528c477beaecbaeb8716bc6e5b6f09bded6a1f.tar.bz2 aports-be528c477beaecbaeb8716bc6e5b6f09bded6a1f.tar.xz |
testing/zram-init: update to 3.5
adds zsh-completions
version 3.5 supports using lz4 commpression (which is faster than lzo)
https://github.com/vaeth/zram-init/blob/master/README
-rw-r--r-- | testing/zram-init/APKBUILD | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/testing/zram-init/APKBUILD b/testing/zram-init/APKBUILD index 2c448d09db..50ca8d43e4 100644 --- a/testing/zram-init/APKBUILD +++ b/testing/zram-init/APKBUILD @@ -1,14 +1,16 @@ -# Maintainer: +# Maintainer: Stuart Cardall <developer@it-offshore.co.uk> # Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org> pkgname=zram-init -pkgver=2.7 +pkgver=3.5 pkgrel=0 -pkgdesc='rapper script for the zram kernel module' +pkgdesc='wrapper script for the zram kernel module' arch=noarch -url='http://github.com/vaeth/zram-init' +url='https://github.com/vaeth/zram-init' license='GPL2' -source="$url/archive/2.7.tar.gz" +depends="e2fsprogs-extra" +subpackages="$pkgname-zsh-completion:zshcomp" +source="$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz" _builddir="$srcdir/$pkgname-$pkgver" @@ -24,6 +26,16 @@ package() { install -Dm755 openrc/init.d/zram-init "$pkgdir"/etc/init.d/zram-init } -md5sums="6e12160b0597181c88150961fd37c53b 2.7.tar.gz" -sha256sums="205765243bd36bf62c471363c4fddf8173275d37f5f919716b5b71afea0fe94d 2.7.tar.gz" -sha512sums="db8dc5580b8405752d58996e5927573b687795b598c94948ccc51d038f7c7dfc47b64651d9554c1807d8f6453498c3f1efe6f2d34b82eb6b1df2d8f7e84980a5 2.7.tar.gz" +zshcomp() { + depends="" + pkgdesc="Zsh completions for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel zsh" + arch="noarch" + + install -Dm644 "$_builddir"/zsh/_$pkgname \ + "$subpkgdir"/usr/share/zsh/site-functions/_$pkgname +} + +md5sums="228dd3901e4b8def156bcb01d1ba90de zram-init-3.5.tar.gz" +sha256sums="84b50e93fe0421ffa20581aa43de117968a4c5455b0023b3ff8a4cc27b97a8d0 zram-init-3.5.tar.gz" +sha512sums="6628efd0df9a65284a23a3261d7d4f62d8ec7eb64e52d21bd7514bfb92814cf21a93661b7aca52e0653f5f750586c5e66d734ff98d1f9579aa18f0ef228d177b zram-init-3.5.tar.gz" |