[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Sun May 9 13:58:16 UTC 2021


    Date: Sunday, May 9, 2021 @ 13:58:16
  Author: felixonmars
Revision: 929204

addpkg: zram-generator 0.3.2-1

Added:
  zram-generator/
  zram-generator/repos/
  zram-generator/trunk/
  zram-generator/trunk/PKGBUILD

----------+
 PKGBUILD |   31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

Added: zram-generator/trunk/PKGBUILD
===================================================================
--- zram-generator/trunk/PKGBUILD	                        (rev 0)
+++ zram-generator/trunk/PKGBUILD	2021-05-09 13:58:16 UTC (rev 929204)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Sergey Shatunov <me at prok.pw>
+
+pkgname=zram-generator
+pkgver=0.3.2
+pkgrel=1
+pkgdesc="Systemd unit generator for zram devices"
+arch=("x86_64" "arm" "arv6h" "armv7h" "aarch64" "i686" "pentium4")
+url="https://github.com/systemd/zram-generator"
+license=('MIT')
+depends=("systemd")
+makedepends=('rust' 'ruby-ronn-ng')
+source=("https://github.com/systemd/zram-generator/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha256sums=('9c014ca1d1c92a31dd827641ab3c413aa36672e48b39e105e195796b3b3ae40a')
+
+build() {
+  cd zram-generator-$pkgver
+  make CARGOFLAGS="--target-dir=target" build man
+}
+
+check() {
+  cd zram-generator-$pkgver
+  make CARGOFLAGS="--target-dir=target" check
+}
+
+package() {
+  cd zram-generator-$pkgver
+
+  make CARGOFLAGS="--target-dir=target" DESTDIR="$pkgdir" install
+  install -Dpm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list