diff options
author | Evan Anderson | 2015-07-12 16:01:23 -0500 |
---|---|---|
committer | Evan Anderson | 2015-07-12 16:01:23 -0500 |
commit | 06164c724062bfcdbc54f7e8a9ea0a92ac02b883 (patch) | |
tree | 004c2694fff5cd1ac54a26bff01373bb276da2c6 | |
download | aur-06164c724062bfcdbc54f7e8a9ea0a92ac02b883.tar.gz |
Initial import
Signed-off-by: Evan Anderson <evananderson@thelinuxman.us>
-rw-r--r-- | .SRCINFO | 17 | ||||
-rwxr-xr-x | PKGBUILD | 35 |
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7a557d1b69fc --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = grub-btrfs-git + pkgdesc = grub-btrfs, add support for btrfs snapshots into grub menu + pkgver = v0.6.1.r0.gfda6eb8 + pkgrel = 1 + url = https://github.com/Antynea/grub-btrfs + arch = any + license = GPL3 + makedepends = git + depends = btrfs-progs + depends = grub + conflicts = grub-btrfs + backup = etc/grub.d/41_snapshots-btrfs + source = git+https://github.com/Antynea/grub-btrfs.git + md5sums = SKIP + +pkgname = grub-btrfs-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100755 index 000000000000..a25390f8749f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Evan Anderson <evananderson@thelinuxman.us> +# Maintainer = Anty <anty_fab at hotmail dot fr> + +_gitname=grub-btrfs +pkgname=$_gitname-git +pkgver=v0.6.1.r0.gfda6eb8 +pkgrel=1 +pkgdesc="grub-btrfs, add support for btrfs snapshots into grub menu" +arch=('any') +url="https://github.com/Antynea/grub-btrfs" +license=('GPL3') +depends=('btrfs-progs' 'grub') +makedepends=('git') +conflicts=('grub-btrfs') +backup=('etc/grub.d/41_snapshots-btrfs') +source=('git+https://github.com/Antynea/grub-btrfs.git') +md5sums=('SKIP') + +pkgver() { + cd $_gitname/ + # ( set -o pipefail + # git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + # printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + # ) + ( set -o pipefail + git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +package() { + cd "$_gitname" + install -Dm 755 "41_snapshots-btrfs" "${pkgdir}/etc/grub.d/41_snapshots-btrfs" + install -Dm 644 "localisation/fr/grub-btrfs-git.mo" "${pkgdir}/usr/share/locale/fr/LC_MESSAGES/grub-btrfs-git.mo" +} |