blob: 4e8e503e7d9196263280f2159b81b597647e2ade (
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
|
# Maintainer: Marcos Ferreira <merkkp at gmail dot com>
_gitname="php-livereload"
pkgname="${_gitname}-git"
pkgver=0.1.2.0.g11759b9
pkgrel=1
pkgdesc="LiveReload server in PHP"
arch=("any")
url="https://github.com/RickySu/php-livereload"
license=("MIT")
depends=("php")
makedepends=("git" "composer" "php-box")
provides=("${_gitname}")
conflicts=("${_gitname}")
source=("git+https://github.com/RickySu/php-livereload")
md5sums=("SKIP")
pkgver() {
cd "${_gitname}"
git describe --always --tags --long | sed 's/^v//;s/-/./;s/-/./g'
}
build() {
cd "${_gitname}"
composer install
php-box build
}
package() {
cd "${_gitname}"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm755 dist/reload.phar "${pkgdir}/usr/bin/php-reload"
}
# vim:set ts=2 sw=2 et:
|