diff options
author | Chocobo1 | 2020-01-09 11:50:56 +0800 |
---|---|---|
committer | Chocobo1 | 2020-01-09 12:05:03 +0800 |
commit | 51e9cbfe6fe044999a52840a6be471a0f453dfc8 (patch) | |
tree | e64268551215b8278985d7facb43e2cae7fb011b | |
download | aur-51e9cbfe6fe044999a52840a6be471a0f453dfc8.tar.gz |
newpkg: systemd-swap-git 4.0.1.r31.gd813ae2-1
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..377f31ed6022 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = systemd-swap-git + pkgdesc = Script for creating hybrid swap space from zram swaps, swap files and swap partitions + pkgver = 4.0.1.r31.gd813ae2 + pkgrel = 1 + url = https://github.com/Nefelim4ag/systemd-swap + arch = any + license = GPL3 + makedepends = git + depends = bash + depends = systemd + provides = systemd-swap + conflicts = systemd-swap + backup = etc/systemd/swap.conf + source = git+https://github.com/Nefelim4ag/systemd-swap.git + sha256sums = SKIP + +pkgname = systemd-swap-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7aace5eeeaf6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# 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/Nefelim4ag/systemd-swap.git") +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 + + install -dm755 "$pkgdir/usr/lib" + mv "$pkgdir/lib/systemd" "$pkgdir/usr/lib/systemd" + rmdir "$pkgdir/lib" +} |