-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
36 lines (32 loc) · 865 Bytes
/
PKGBUILD
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
# Maintainer: KeithSPG <ys3al35l@gmail.com>
extname=dbus
pkgname="php-$extname"
_pkgname="pecl-dbus"
pkgver=0.r85.315d175
pkgrel=1
pkgdesc='PHP PECL extension providing interface to dbus'
arch=('x86_64' 'armv6h' 'armv7h' 'aarch64')
url="https://github.com/derickr/pecl-dbus.git"
license=('PHP')
depends=('php>=7.0','libdbus')
source=("git+https://github.com/derickr/pecl-dbus.git")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgname"
printf "0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$_pkgname"
phpize
./configure \
--prefix=/usr
make
}
package() {
pushd "$srcdir/$_pkgname"
make INSTALL_ROOT="$pkgdir" install
mkdir -p "$pkgdir/etc/php/conf.d"
touch "$pkgdir/etc/php/conf.d/$extname.ini"
echo "extension=$extname" > "$pkgdir/etc/php/conf.d/$extname.ini"
popd
}