summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b34c45524368b40abece52c9d162febb4f8cd335 (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
# Maintainer: Márk Sági-Kazár <mark.sagi-kazar@gmail.com>

pkgname=php-build-git
pkgver=0.10.0.r437.g0aed607
pkgrel=1
pkgdesc="Install PHP versions"
arch=("any")
url="https://github.com/php-build/php-build"
license=("MIT")
depends=("libmcrypt" "gmp" "tidyhtml")
makedepends=("git")
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git://github.com/php-build/php-build")
md5sums=("SKIP")

pkgver() {
	cd "${srcdir}/${pkgname%-git}"

	git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
	cd "${srcdir}/${pkgname%-git}"

	mkdir -p "${pkgdir}/usr/share/licenses/${pkgname%-git}"
	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE"

	PREFIX="$pkgdir/usr" ./install.sh
	rm "${pkgdir}/usr/bin/rbenv-install"
	rm "${pkgdir}/usr/bin/rbenv-uninstall"
	rm "${pkgdir}/usr/bin/rbenv-update"
}