blob: 0ced015befaf7381c28d9c1c6509a43d85703673 (
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
|
# Maintainer: Arglebargle < arglebargle DASH aur AT arglebargle DOT dev >
pkgname=zram-swap-git
_pkgname=zram-swap
pkgver=02.r6.g205ea1e
pkgrel=1
pkgdesc="A simple zram swap service for modern systemd Linux"
arch=('any')
url="https://github.com/foundObjects/zram-swap.git"
license=('MIT')
depends=('systemd' 'sh' 'grep' 'awk' 'util-linux' 'kmod')
makedepends=('git')
install="zram-swap.install"
backup=('etc/default/zram-swap')
source=('git+https://github.com/foundObjects/zram-swap.git')
sha512sums=('SKIP')
pkgver() {
cd ${_pkgname}
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd ${_pkgname}
sed -i 's/local\/s//g' ./service/zram-swap.service
}
package() {
provides=("$_pkgname")
cd ${_pkgname}
install -Dm0644 "${srcdir}/${_pkgname}/service/zram-swap.service" "${pkgdir}/usr/lib/systemd/system/zram-swap.service"
install -Dm0644 "${srcdir}/${_pkgname}/service/zram-swap.config" "${pkgdir}/etc/default/zram-swap"
install -Dm0755 "${srcdir}/${_pkgname}/zram-swap.sh" "${pkgdir}/usr/bin/zram-swap.sh"
}
|