aboutsummaryrefslogtreecommitdiffstats
path: root/community/zram-init
diff options
context:
space:
mode:
authorStuart Cardall <developer@it-offshore.co.uk>2016-08-18 20:46:53 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2016-08-21 22:24:04 +0200
commit5c9f3ca3e307be53b45beeed2ce1626f38008625 (patch)
tree919836fe454e953f46685adf8228b0401280d4b6 /community/zram-init
parent6a00a953ba02bab6440a2c784e7db37c6eaeace1 (diff)
downloadaports-5c9f3ca3e307be53b45beeed2ce1626f38008625.tar.bz2
aports-5c9f3ca3e307be53b45beeed2ce1626f38008625.tar.xz
testing/[various]: move to community
albatross-themes apk-post-messages autossh bitcoin btrbk entr ffmpegthumbnailer firejail firetools fwsnort gnome-colors imapsync inetutils-syslogd inotify-tools-inc isync junit ktsuss letsencrypt-nosudo libmbim libndp libqmi libteam mini-sendmail modemmanager namecoin networkmanager nginx-naxsi numix-themes nxapi opencl-headers opencl-icd-loader opus-tools perl-authen-ntlm perl-bit-vector perl-data-uniqid perl-file-copy-recursive perl-getopt-argvfile perl-io-tee perl-iptables-chainmgr perl-iptables-parse perl-module-scandeps perl-par-dist perl-par-packer perl-par perl-uri-escape psad py-crcmod py-graphviz py-lz4 py-opencl py-opengl-accelerate runit secpwgen secure-delete socklog spacefm tinyssh udevil virt-viewer virtualbricks whois wrk xpra zram-init
Diffstat (limited to 'community/zram-init')
-rw-r--r--community/zram-init/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/community/zram-init/APKBUILD b/community/zram-init/APKBUILD
new file mode 100644
index 0000000000..1cec0fde7d
--- /dev/null
+++ b/community/zram-init/APKBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
+# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
+pkgname=zram-init
+pkgver=3.8
+pkgrel=0
+pkgdesc="wrapper script for the zram kernel module"
+arch="noarch"
+url="https://github.com/vaeth/zram-init"
+license="GPL2"
+depends="e2fsprogs-extra"
+subpackages="$pkgname-zsh-completion:zshcomp"
+source="$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
+
+_builddir="$srcdir/$pkgname-$pkgver"
+build() {
+ return 0
+}
+
+package() {
+ cd "$_builddir"
+ install -Dm644 modprobe.d/zram.conf "$pkgdir"/etc/modprobe.d/zram.conf
+ install -Dm755 sbin/zram-init "$pkgdir"/usr/sbin/zram-init
+ install -Dm644 openrc/conf.d/zram-init "$pkgdir"/etc/conf.d/zram-init
+ install -Dm755 openrc/init.d/zram-init "$pkgdir"/etc/init.d/zram-init
+}
+
+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="fb36ef7138f028de71ed1d5e372a6e02 zram-init-3.8.tar.gz"
+sha256sums="4a43c424739dda6c4ffe62b5431b6fb1f476afd9f8b9b9149eb32314cd34a3a6 zram-init-3.8.tar.gz"
+sha512sums="c083f34bba6031f8e247f61a1451343e14cc4bc5c4731ad3a32a5f0eea265936a83b27ad0e3cbd2ba0e05e2bec1e6ae739b6e4149d120dafbcc057437188f07f zram-init-3.8.tar.gz"