aboutsummaryrefslogtreecommitdiffstats
path: root/community/zram-init/APKBUILD
blob: 5e291e5d330e6ca3560c5161f01db3645324e54a (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
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
pkgname=zram-init
pkgver=3.8.1
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"

	install -Dm644 "$builddir"/zsh/_$pkgname \
		"$subpkgdir"/usr/share/zsh/site-functions/_$pkgname
}

md5sums="43589ffca32bd70c3e0886627d14fe48  zram-init-3.8.1.tar.gz"
sha256sums="fd518f84eadf65a316f7b33a0d3516efa781c24739d5f9fa1737dafcfad2dddb  zram-init-3.8.1.tar.gz"
sha512sums="cf01cfd80ef40df4762a8028b9094b54e9f7e39c7cc09c92ab2a2ffeb18ed9a65472bb06e731c547fbbbf8cc62984f40e2314720e9323b4fb775ddef001333ae  zram-init-3.8.1.tar.gz"