summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2100ffe22606549701af2808eb3216913647dd2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Stefan Auditor <stefan.auditor@erdfisch.de>
# Please report issues at https://github.com/sanduhrs/arch-aur-phptok

pkgname=phptok
pkgver=1.0.0
pkgrel=2
pkgdesc="A tool for quickly dumping the tokens of a PHP sourcecode file."
url="https://github.com/sebastianbergmann/phptok"
arch=("any")
license=("BSD")
depends=("php")
install="${pkgname}.install"
source=("https://phar.phpunit.de/${pkgname}-${pkgver}.phar"
        "https://raw.githubusercontent.com/sebastianbergmann/${pkgname}/${pkgver}/LICENSE")
sha512sums=('0a982e1c4855eaa14ac3c9a4a8e8252f7c47342ba36b11f889a9ef02da0a26144d01cd39e7b3289c91af7b18b89f0076ab00b523b396ae8ef5380684330f7e0f'
            'de410d05391c69b08992e71b497da39603a00b29b5b8efc637d236fcd8b9b491defbe29d4d8322a087fbfb849f0c483b5bcb96be7c94cc3423c5cb69b66cc2d1')

package() {
  install -D -m 644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -D -m 755 "${srcdir}/${pkgname}-${pkgver}.phar" "${pkgdir}/usr/share/webapps/bin/${pkgname}.phar"
  install -d "${pkgdir}/usr/bin"
  ln -s "/usr/share/webapps/bin/${pkgname}.phar" "${pkgdir}/usr/bin/${pkgname}"
}