Skip to content

Instantly share code, notes, and snippets.

@zenofile
Created June 12, 2020 22:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zenofile/2105864922abb515617bd63e1b897328 to your computer and use it in GitHub Desktop.
Save zenofile/2105864922abb515617bd63e1b897328 to your computer and use it in GitHub Desktop.
systemd-swap PKGBUILD branch test
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=systemd-swap-git
pkgver=4.0.1.r31.gd813ae2
pkgrel=1
pkgdesc="Script for creating hybrid swap space from zram swaps, swap files and swap partitions"
arch=('any')
url="https://github.com/Nefelim4ag/systemd-swap"
license=('GPL3')
depends=('bash' 'systemd')
makedepends=('git')
provides=('systemd-swap')
conflicts=('systemd-swap')
backup=('etc/systemd/swap.conf')
source=("git+https://github.com/zenofile/systemd-swap#branch=man")
sha256sums=('SKIP')
pkgver() {
cd "systemd-swap"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
cd "systemd-swap"
make prefix="$pkgdir" install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment