blob: 643a92f8a746603e662f95146037b3abc9166abe (
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
|
# 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')
makedepends=('git')
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/
}
|