blob: 111e0fa5b929add4524440788e8fa2630fd4e984 (
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
|
pkgname=nginx-config-formatter-git
pkgver=r43.e942e40
pkgrel=2
pkgdesc="nginx config file formatter/beautifier written in Python. "
depends=('python')
license=('Apache 2.0')
provides=('nginx-config-formatter-git')
arch=('any')
url="https://github.com/slomkowski/nginx-config-formatter"
source=($pkgname::git+$url)
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}"
# Get the version number.
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$srcdir/$pkgname"
install -Dm755 nginxfmt.py "${pkgdir}/usr/bin/nginxfmt.py"
mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"
install LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|