summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO30
-rw-r--r--PKGBUILD47
2 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a1d884b3aec
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,30 @@
+pkgbase = genkernel-next-git
+ pkgdesc = Kernel compiliation and initramfs image creation utility - git checkout
+ pkgver = 69.r2.g7b20b78
+ pkgrel = 1
+ url = https://github.com/Sabayon/genkernel-next
+ arch = any
+ license = GPL2
+ makedepends = git
+ makedepends = asciidoc
+ makedepends = e2fsprogs
+ makedepends = udev
+ depends = bash
+ depends = lvm2
+ depends = thin-provisioning-tools
+ depends = util-linux
+ depends = pax-utils
+ depends = cpio
+ optdepends = cryptsetup: Enable support for LUKS disk encryption
+ optdepends = gnupg: Enable support for GPG
+ optdepends = mdadm: Enable support for mdadm
+ optdepends = dmraid: Enable support for dmraid
+ optdepends = open-iscsi: Enable iscsi support
+ optdepends = plymouth: Enable framebuffer splash support
+ provides = genkernel
+ backup = etc/genkernel.conf
+ source = git://github.com/Sabayon/genkernel-next.git
+ sha256sums = SKIP
+
+pkgname = genkernel-next-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..24f28344a53
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,47 @@
+# Maintainer: Batuhan Baserdem <lastname.surname@gmail.com>
+
+pkgname=genkernel-next-git
+pkgver=69.r2.g7b20b78
+pkgrel=1
+pkgdesc='Kernel compiliation and initramfs image creation utility - git checkout'
+arch=('any')
+url='https://github.com/Sabayon/genkernel-next'
+license=('GPL2')
+depends=('bash'
+ 'lvm2'
+ 'thin-provisioning-tools'
+ 'util-linux'
+ 'pax-utils'
+ 'cpio')
+optdepends=('cryptsetup: Enable support for LUKS disk encryption'
+ 'gnupg: Enable support for GPG'
+ 'mdadm: Enable support for mdadm'
+ 'dmraid: Enable support for dmraid'
+ 'open-iscsi: Enable iscsi support'
+ 'plymouth: Enable framebuffer splash support')
+makedepends=('git' 'asciidoc' 'e2fsprogs' 'udev')
+provides=('genkernel')
+backup=('etc/genkernel.conf')
+source=('git://github.com/Sabayon/genkernel-next.git')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd genkernel-next/
+
+ if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then
+ printf '%s.r%s.g%s' \
+ "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG})" \
+ "$(git rev-list --count ${GITTAG}..)" \
+ "$(git log -1 --format='%h')"
+ else
+ printf '0.r%s.g%s' \
+ "$(git rev-list --count master)" \
+ "$(git log -1 --format='%h')"
+ fi
+}
+
+package() {
+ cd genkernel-next/
+
+ make DESTDIR="${pkgdir}" install
+}