summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ab037c012d652e7b6693a840a788db2526ed5f0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: Christopher Fair  <christopherpfair at comcast dot net>
pkgname=git-subrepo
pkgver=0.4.1
pkgrel=2
pkgdesc="Git Submodule Alternative"
arch=('i686' 'x86_64')
url="https://github.com/chrisfair/git-subrepo.git"
license=('MIT')
depends=('git')
makedepends=('git')
source=("https://github.com/chrisfair/git-subrepo/archive/${pkgver}.tar.gz")
sha256sums=('fd3c87736115c82c49c13dcfc3aa2a93752663240ae47083beb4ff232e208e18')

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  # git-subrepo
  install -d "${pkgdir}/usr/lib/git-core/"
  make INSTALL_LIB="${pkgdir}/usr/lib/git-core" PREFIX=$"${pkgdir}/usr" install

  # Completions Bash and ZSH /!\ DOESN'T WORK /!\
  install -D -m0644 "share/completion.bash" \
	  "${pkgdir}/usr/share/bash-completion/completions/git-subrepo"
  install -D -m0644 "share/zsh-completion/_git-subrepo" \
	  "${pkgdir}/usr/share/zsh/site-functions/_git-subrepo"

  # License
  install -D -m644 License "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}