summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5ed0a2de6413dc9b2aed527f2ec67f1551dac149 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Maintainer: Michael DeGuzis 
# <mdeguzis@gmail.com> Git package 
# to stay up to date always If 
# there is not update to the AUR 
# package, remember to pass --devel 
# to your AUR helper (common flag).

pkgname=devscripts-git 
_gitname=devscripts 
pkgver=2.16.12.r0.g2343096 
pkgrel=1 pkgdesc="Scripts to make the life of a Debian Package maintainer easier (git-latest)" 
arch=('any') 
url="https://anonscm.debian.org/git/collab-maint/devscripts.git" 
license=('GPL2')
depends=('dpkg' 'wget' 'sed' 'perl' 'debianutils' 
	 'debhelper' 'perl-timedate') 
optdepends=('sensible-utils: for sensible alternative selection') 
makedepends=('git' 'po4a' 'perl-timedate' 'perl-libwww' 'docbook-xsl' 
	     'perl-file-desktopentry' 'perl-file-basedir' 
	     'perl-parse-debcontrol' 'python-setuptools') 
conflicts=('devscripts') 
provides=('devscripts') 
options=('!makeflags') 
source=('git+https://anonscm.debian.org/git/collab-maint/devscripts.git'
	'fixes.patch') 
install='devscripts-git.install' 
md5sums=('SKIP'
         '110857b0eb4a9dbf57a8b562d992ab33') 

pkgver() {

  cd "$_gitname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//'

}

build() {

  cd $srcdir/$_gitname
  patch -p0 -i ../fixes.patch
  make

}

package() {

  mkdir -p $pkgdir/etc/bash_completion.d
  mkdir -p $pkgdir/usr/bin
  mkdir -p $pkgdir/usr/lib/devscripts
  mkdir -p $pkgdir/usr/share/devscripts

  cd $srcdir/$_gitname
  make DESTDIR=$pkgdir install

  # remove conflicting file provided by bash-completion in the community repo
  msg "Removing conflicting file already provided by package 'bash-completion'"
  rm -v $pkgdir/usr/share/bash-completion/completions/bts

}