1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Sergey Shatunov <me@prok.pw>
7 pkgdesc="Systemd unit generator for zram devices"
9 url="https://github.com/systemd/zram-generator"
12 makedepends=('rust' 'ruby-ronn-ng')
13 source=("https://github.com/systemd/zram-generator/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
14 sha256sums=('506d47acbabffa7013bb40a1f61c6edfa758a7bd55820d06ef49c7bc83dba762')
17 cd zram-generator-$pkgver
18 make CARGOFLAGS="--target-dir=target" build man
22 cd zram-generator-$pkgver
23 make CARGOFLAGS="--target-dir=target" check
27 cd zram-generator-$pkgver
29 make CARGOFLAGS="--target-dir=target" DESTDIR="$pkgdir" install
30 install -Dpm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/