aboutsummaryrefslogtreecommitdiffstats
path: root/testing/zram-init/APKBUILD
blob: ca08205aa184b09e84b9bdff542ab5fd77b9ecf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
pkgname=zram-init
pkgver=3.5
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="228dd3901e4b8def156bcb01d1ba90de  zram-init-3.5.tar.gz"
sha256sums="84b50e93fe0421ffa20581aa43de117968a4c5455b0023b3ff8a4cc27b97a8d0  zram-init-3.5.tar.gz"
sha512sums="6628efd0df9a65284a23a3261d7d4f62d8ec7eb64e52d21bd7514bfb92814cf21a93661b7aca52e0653f5f750586c5e66d734ff98d1f9579aa18f0ef228d177b  zram-init-3.5.tar.gz"