Mail archive
alpine-aports

[alpine-aports] [PATCH 3/3] testing/zram-init: update to 3.5

From: Stuart Cardall <developer_at_it-offshore.co.uk>
Date: Tue, 29 Dec 2015 16:00:35 +0000

adds zsh-completions
version 3.5 supports using lz4 commpression (which is faster than lzo)

https://github.com/vaeth/zram-init/blob/master/README
---
 testing/zram-init/APKBUILD | 28 ++++++++++++++++++++--------
 1 file changed, 20 insertions(+), 8 deletions(-)
diff --git a/testing/zram-init/APKBUILD b/testing/zram-init/APKBUILD
index 2c448d0..50ca8d4 100644
--- a/testing/zram-init/APKBUILD
+++ b/testing/zram-init/APKBUILD
_at_@ -1,14 +1,16 @@
-# Maintainer:
+# Maintainer: Stuart Cardall <developer_at_it-offshore.co.uk>
 # Contributor: Bartłomiej Piotrowski <bpiotrowski_at_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"
 
_at_@ -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"
-- 
2.6.4
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Tue Dec 29 2015 - 16:00:35 GMT