summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4bc2c12a45dc2182bcc5f93f086b61681fbab024 (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
# Maintainer: Dennis Fink <metalgamer@c3l.lu>
# Maintainer: Oleg Rakhmanov <orakhmanov [at] gmail [dot] com>
# Contributor: Anntoin Wilkinson <anntoin gmail com>
# Contributor: Vladimir Ermakov <vooon341@gmail.com>
# Contributor: Peter A. Shevtsov <pshevtsov at severusweb dot ru>

pkgname=yuicompressor
pkgver=2.4.8
pkgrel=3
pkgdesc="CSS and Javascript compressor"
arch=("any")
url="http://developer.yahoo.com/yui/compressor/"
license=("BSD")
depends=("java-runtime-headless")
source=("https://github.com/yui/yuicompressor/releases/download/v${pkgver}/yuicompressor-${pkgver}.zip"
        "yuicompressor.sh"
	'https://raw.github.com/yui/yuicompressor/master/LICENSE.TXT')

sha1sums=('178e265570c8161e8074c7ca19896abb05e76c1f'
          '1d261a0365c2d15f1be1c1f06bb1df83f965d091'
          '93278e24065a4595d1804eb6ed537258ff94c08c')

package() {
  sed -i "s|x\.y\.z|${pkgver}|" "${pkgname}.sh"


  install -D -m644  "${srcdir}/${pkgname}-${pkgver}.jar" \
                    "${pkgdir}/usr/share/java/${pkgname}-${pkgver}.jar"
  install -D -m755  "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/yuicompressor"

  install -D -m644  "${srcdir}/LICENSE.TXT" \
                   "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.TXT"
  ln -s "yuicompressor" "${pkgdir}/usr/bin/yui-compressor"
  ln -s "${pkgname}-${pkgver}.jar" "${pkgdir}/usr/share/java/${pkgname}.jar"
}

# vim:set ts=2 sw=2 et: