summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattéo Rossillol2018-10-14 12:38:54 +0200
committerMattéo Rossillol2018-10-14 12:38:54 +0200
commit4d38e4479585f31593273e8e2a144aa1c0e5cc84 (patch)
treec0dc418680f3bbc0cb313dccceb80436872c366f
downloadaur-defragall-git.tar.gz
First commit: v1.0
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD33
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ebb725557e8
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+# Generated by makepkg 5.1.1
+# Sun Oct 14 10:37:29 UTC 2018
+pkgbase = defragall-git
+ pkgdesc = A simple utility to defragment all mounted subvolumes of a btrfs system
+ pkgver = 1.0.r2.gc91f1e5
+ pkgrel = 1
+ url = https://github.com/beatussum/defragall
+ arch = any
+ license = GPL3
+ makedepends = git
+ depends = btrfs-progs
+ provides = defragall=1.0.r2.gc91f1e5
+ conflicts = defragall
+ source = git+https://github.com/beatussum/defragall.git
+ sha256sums = SKIP
+
+pkgname = defragall-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a3cdf61c111
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer : Beatussum <echo 'YmVhdHVzc3VtQHByb3Rvbm1haWwuY29tCg==' | base64 -d>
+
+
+_pkgname=defragall
+pkgname=${_pkgname}-git
+pkgver=1.0.r2.gc91f1e5
+pkgrel=1
+pkgdesc="A simple utility to defragment all mounted subvolumes of a btrfs system"
+arch=('any')
+url="https://github.com/beatussum/${_pkgname}"
+license=('GPL3')
+depends=('btrfs-progs')
+makedepends=('git')
+provides=("${_pkgname}=${pkgver}")
+conflicts=("${_pkgname}")
+source=("git+https://github.com/beatussum/${_pkgname}.git")
+sha256sums=('SKIP')
+
+
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+ git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "${srcdir}/${_pkgname}"
+ make
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}"
+ make INSTALL_ROOT="$pkgdir" install
+}