summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 28c833244ef9ed6e3e01f583d332bcbd679b1118 (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
# Contributor: itsme <mymail@ishere.ru>

pkgname=csstidy-cpp-git
_gitname=csstidy-cpp
pkgver=r43.8a5e5d4
pkgrel=1
pkgdesc="Fork of the C++ version of CSSTidy"
arch=('i686' 'x86_64')
url="https://github.com/dmitryleskov/csstidy-cpp/"
license=('GPL')
depends=('gcc-libs')
makedepends=('scons')
conflicts=('csstidy')
provides=('csstidy')
source=("git://github.com/dmitryleskov/${_gitname}.git")
md5sums=('SKIP')

pkgver() {
  cd "$_gitname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$_gitname"
  scons || return 1
}

package() {
  cd "$_gitname"
  install -D release/csstidy/csstidy $pkgdir/usr/bin/csstidy
}