From 8fb0531ca97468491516d75a2a00452b4bc20659 Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Sat, 26 Dec 2020 17:11:15 +0100 Subject: [PATCH] git subrepo clone https://aur.archlinux.org/git-subrepo-xdg subrepo: subdir: "git-subrepo-xdg" merged: "4c3aa39" upstream: origin: "https://aur.archlinux.org/git-subrepo-xdg" branch: "master" commit: "4c3aa39" git-subrepo: version: "0.4.1" origin: "???" commit: "???" --- git-subrepo-xdg/.SRCINFO | 15 +++++++++++++ git-subrepo-xdg/.gitignore | 3 +++ git-subrepo-xdg/.gitrepo | 12 +++++++++++ git-subrepo-xdg/Makefile | 15 +++++++++++++ git-subrepo-xdg/PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 89 insertions(+) create mode 100644 git-subrepo-xdg/.SRCINFO create mode 100644 git-subrepo-xdg/.gitignore create mode 100644 git-subrepo-xdg/.gitrepo create mode 100644 git-subrepo-xdg/Makefile create mode 100644 git-subrepo-xdg/PKGBUILD diff --git a/git-subrepo-xdg/.SRCINFO b/git-subrepo-xdg/.SRCINFO new file mode 100644 index 0000000..efce51c --- /dev/null +++ b/git-subrepo-xdg/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = git-subrepo-xdg + pkgdesc = Git Submodule alternative + pkgver = 0.4.1 + pkgrel = 3 + url = https://github.com/ingydotnet/git-subrepo + arch = any + license = MIT + depends = git + provides = git-subrepo + conflicts = git-subrepo + source = https://github.com/ingydotnet/git-subrepo/archive/0.4.1.tar.gz + sha256sums = 64cc2490c54fe1e5396bb14f6bbf0aa8378085f3b8847fd8ed171e5ddd886065 + +pkgname = git-subrepo-xdg + diff --git a/git-subrepo-xdg/.gitignore b/git-subrepo-xdg/.gitignore new file mode 100644 index 0000000..924dfb9 --- /dev/null +++ b/git-subrepo-xdg/.gitignore @@ -0,0 +1,3 @@ +pkg/ +src/ +*.tar.* diff --git a/git-subrepo-xdg/.gitrepo b/git-subrepo-xdg/.gitrepo new file mode 100644 index 0000000..0cac697 --- /dev/null +++ b/git-subrepo-xdg/.gitrepo @@ -0,0 +1,12 @@ +; DO NOT EDIT (unless you know what you are doing) +; +; This subdirectory is a git "subrepo", and this file is maintained by the +; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme +; +[subrepo] + remote = https://aur.archlinux.org/git-subrepo-xdg + branch = master + commit = 4c3aa391b2b9bc32b8ea283cf6091c36f3aad8f7 + parent = 7b7fbd60d19dafb4842db5ee5973a91d6e35a988 + method = merge + cmdver = 0.4.1 diff --git a/git-subrepo-xdg/Makefile b/git-subrepo-xdg/Makefile new file mode 100644 index 0000000..2c9742d --- /dev/null +++ b/git-subrepo-xdg/Makefile @@ -0,0 +1,15 @@ +build: + makepkg -f + +install: + sudo pacman --noconfirm -U git-subrepo-*.pkg.tar.* + +clean: + rm -rf pkg src + rm -rf git-subrepo* + +update-srcinfo: + makepkg --printsrcinfo > .SRCINFO + +generate-checksums: + makepkg -g -f -p PKGBUILD diff --git a/git-subrepo-xdg/PKGBUILD b/git-subrepo-xdg/PKGBUILD new file mode 100644 index 0000000..88a8c3b --- /dev/null +++ b/git-subrepo-xdg/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Nicolas Stalder +pkgname=git-subrepo-xdg +pkgver=0.4.1 +pkgrel=3 +pkgdesc="Git Submodule alternative" +arch=('any') +url="https://github.com/ingydotnet/git-subrepo" +license=('MIT') +depends=('git') +provides=("git-subrepo") +conflicts=("git-subrepo") +source=("${url}/archive/${pkgver}.tar.gz") +sha256sums=('64cc2490c54fe1e5396bb14f6bbf0aa8378085f3b8847fd8ed171e5ddd886065') + +package() { + sed -i '7 i BASH_SOURCE=/usr/bin' $srcdir/git-subrepo-${pkgver}/lib/git-subrepo + sed -i '20 i SOURCE_DIR=/usr/lib/git-subrepo' $srcdir/git-subrepo-${pkgver}/lib/git-subrepo + + install -Dt $pkgdir/usr/bin/ $srcdir/git-subrepo-${pkgver}/lib/git-subrepo + + install -d $pkgdir/usr/lib/git-subrepo + cp -a $srcdir/git-subrepo-${pkgver}/lib/git-subrepo.d $pkgdir/usr/lib/git-subrepo + + # TODO (maybe): package bashplus separately (https://github.com/ingydotnet/bashplus) + rm $pkgdir/usr/lib/git-subrepo/git-subrepo.d/bash+.bash + cp -a $srcdir/git-subrepo-${pkgver}/ext/bashplus/lib/bash+.bash $pkgdir/usr/lib/git-subrepo/git-subrepo.d/ + + install -d $pkgdir/usr/share/man/man1 + gzip -c $srcdir/git-subrepo-${pkgver}/man/man1/git-subrepo.1 > $pkgdir/usr/share/man/man1/git-subrepo.1.gz + + # TODO: completions + install -d $pkgdir/usr/share/zsh/site-functions + sed -i '6,9d' $srcdir/git-subrepo-${pkgver}/share/zsh-completion/_git-subrepo + cp -a $srcdir/git-subrepo-${pkgver}/share/zsh-completion/_git-subrepo $pkgdir/usr/share/zsh/site-functions + + # not sure about these, I don't use bash :) + # Note: seems to work like git-annex; may need to install bash-completion to enable + install -d $pkgdir/usr/share/bash-completion/completions + cp -a $srcdir/git-subrepo-${pkgver}/share/completion.bash $pkgdir/usr/share/bash-completion/completions/git-subrepo + + # MIT license + install -Dm644 $srcdir/git-subrepo-${pkgver}/License "$pkgdir/usr/share/licenses/$pkgname/License" +} +