summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 250c294b16d34b64fdbf01c0d4c8c0a92675d01a (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
# Author: ava1ar <mail(at)ava1ar(dot)info>

pkgname=customizepkg-git
_pkgname=customizepkg
pkgver=51.6cf63cb
pkgrel=1
pkgdesc="A tool to modify automatically PKGBUILD" 
url="https://github.com/ava1ar/customizepkg" 
license=('GPL')
arch=('any')
depends=('bash' 'diffutils') 
provides=('customizepkg')
conflicts=('customizepkg' 'customizepkg-ald' 'customizepkg-patching' 'customizepkg-scripting')
optdepends=(
	'vim: for vimdiff'
	'colordiff: for colored diff output'
)
source=(git+https://github.com/ava1ar/customizepkg.git) 
sha1sums=('SKIP')

pkgver() {
	cd ${_pkgname}
	echo $(git rev-list --count master).$(git rev-parse --short master)
}

package() { 
	cd ${_pkgname}
	install -D -m 755 ${_pkgname} "${pkgdir}"/usr/bin/${_pkgname}
	mkdir -p "${pkgdir}"/etc/customizepkg.d/
	cp -R examples/*.example "${pkgdir}"/etc/customizepkg.d/
}