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 /PKGBUILD | |
download | aur-06164c724062bfcdbc54f7e8a9ea0a92ac02b883.tar.gz |
Initial import
Signed-off-by: Evan Anderson <evananderson@thelinuxman.us>
Diffstat (limited to 'PKGBUILD')
-rwxr-xr-x | PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
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" +} |