blob: c24566510390a14eeee92dc6a6027cc4023af971 (
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
|
# Maintainer: maximumadmin <mxmadm at protonmail dot com>
pkgname=zramd
pkgver=0.9.2
pkgrel=1
pkgdesc="Automatically setup swap on zram ✨"
arch=('any')
url="https://github.com/maximumadmin/zramd"
license=('MIT')
depends=('util-linux')
makedepends=('go')
optdepends=('earlyoom: userspace oom daemon')
conflicts=('systemd-swap'
'zramswap'
'zram-generator'
'zram-generator-git')
backup=('etc/default/zramd')
source=("https://github.com/maximumadmin/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('4f9b7d032356c88884a283b68e947a52d8aa1e3450b431403dc22f568234ee60')
build() {
cd "$pkgname-$pkgver"
local commit_date="${COMMIT_DATE:-$(date --iso-8601=seconds)}"
GOPATH="${srcdir}/go" VERSION="$pkgver" COMMIT_DATE="$commit_date" make
}
check() {
cd "$pkgname-$pkgver"
GOPATH="${srcdir}/go" make test
}
package() {
cd "$pkgname-$pkgver"
PREFIX="$pkgdir" make install
}
|