summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatryk Jaworski2016-08-14 00:32:30 +0200
committerPatryk Jaworski2016-08-14 00:32:30 +0200
commit876cc5477f40f99f8fbcff5ea9801ae0008ef2e0 (patch)
tree2a7a28f1f45a1de47cc4b2942ad54a7aeb798d0f
downloadaur-876cc5477f40f99f8fbcff5ea9801ae0008ef2e0.tar.gz
Add mkinitcpio-squashfs-git package
* SquashFS root support for mkinitcpio (local and remote image locations supported)
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD31
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ad89fb68551
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = mkinitcpio-squashfs-git
+ pkgdesc = SquashFS root support for mkinitcpio (local and remote image locations supported)
+ pkgver = 0.1
+ pkgrel = 2
+ url = https://github.com/RegalisTechnologies/mkinitcpio-squashfs
+ arch = any
+ license = GPL3
+ makedepends = git
+ depends = pv
+ depends = wget
+ depends = mkinitcpio
+ depends = findutils
+ optdepends = mkinitcpio-nfs-utils: downloading SquashFS images from remote locations
+ conflicts = mkinitcpio-squashfs
+ source = git+https://github.com/RegalisTechnologies/mkinitcpio-squashfs.git
+ md5sums = SKIP
+
+pkgname = mkinitcpio-squashfs-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d7dc91bb7a0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Patryk Jaworski <regalis@regalis.com.pl>
+
+pkgname=mkinitcpio-squashfs-git
+pkgver=0.1
+pkgrel=2
+pkgdesc="SquashFS root support for mkinitcpio (local and remote image locations supported)"
+arch=("any")
+url="https://github.com/RegalisTechnologies/mkinitcpio-squashfs"
+license=("GPL3")
+depends=("pv" "wget" "mkinitcpio" "findutils")
+makedepends=("git")
+optdepends=("mkinitcpio-nfs-utils: downloading SquashFS images from remote locations")
+conflicts=("mkinitcpio-squashfs")
+source=("git+https://github.com/RegalisTechnologies/mkinitcpio-squashfs.git")
+md5sums=('SKIP')
+_gitname=mkinitcpio-squashfs
+
+pkgver() {
+ cd "${srcdir}/${pkgname%-git}"
+ VERSION="$(git describe --long --tags 2>/dev/null| sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
+ if [[ -n "$VERSION" ]]; then
+ echo ${VERSION}
+ else
+ printf "%s" "0.0.1.`git log --format='%H' -n 1 | cut -c -10`"
+ fi
+}
+
+package() {
+ cd "${_gitname}"
+ make install DESTDIR="${pkgdir}"
+}