archrelease: copy trunk to community-any
[ArchLinux/community.git] / zram-generator / trunk / PKGBUILD
blob186ada578e040b1d9b2ab18a389fa80456cba08a
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Sergey Shatunov <me@prok.pw>
4 pkgname=zram-generator
5 pkgver=1.1.2
6 pkgrel=1
7 pkgdesc="Systemd unit generator for zram devices"
8 arch=("x86_64")
9 url="https://github.com/systemd/zram-generator"
10 license=('MIT')
11 depends=("systemd")
12 makedepends=('rust' 'ruby-ronn-ng')
13 source=("https://github.com/systemd/zram-generator/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
14 sha256sums=('506d47acbabffa7013bb40a1f61c6edfa758a7bd55820d06ef49c7bc83dba762')
16 build() {
17   cd zram-generator-$pkgver
18   make CARGOFLAGS="--target-dir=target" build man
21 check() {
22   cd zram-generator-$pkgver
23   make CARGOFLAGS="--target-dir=target" check
26 package() {
27   cd zram-generator-$pkgver
29   make CARGOFLAGS="--target-dir=target" DESTDIR="$pkgdir" install
30   install -Dpm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/