Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alpine
aports
Commits
88907fa9
Commit
88907fa9
authored
7 years ago
by
TBK
Committed by
Andy Postnikov
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
testing/php7-rdkafka: modernize
parent
0d855245
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
testing/php7-rdkafka/APKBUILD
+15
-13
15 additions, 13 deletions
testing/php7-rdkafka/APKBUILD
with
15 additions
and
13 deletions
testing/php7-rdkafka/APKBUILD
+
15
−
13
View file @
88907fa9
...
...
@@ -3,35 +3,37 @@
pkgname
=
php7-rdkafka
_pkgreal
=
rdkafka
pkgver
=
3.0.5
pkgrel
=
0
pkgrel
=
1
pkgdesc
=
"A librdkafka bindings for PHP7 providing a working client for Kafka 0.8-0.10"
url
=
"http://pecl.php.net/package/
$_pkgreal
"
arch
=
"all"
license
=
"MIT"
depends
=
""
makedepends
=
"php7-dev autoconf file librdkafka-dev pcre-dev"
source
=
"http://pecl.php.net/get/
$_pkgreal
-
$pkgver
.tgz"
builddir
=
"
$srcdir
/
$_pkgreal
-
$pkgver
"
# http://pecl.php.net/get/$_pkgreal-$pkgver.tgz does not include the tests
source
=
"
$_pkgreal
-
$pkgver
.tgz::https://github.com/arnaud-lb/php-rdkafka/archive/
$pkgver
.tar.gz"
builddir
=
"
$srcdir
/php-
$_pkgreal
-
$pkgver
"
build
()
{
cd
"
$builddir
"
phpize7
||
return
1
./configure
--prefix
=
/usr
--with-php-config
=
/usr/bin/php-config7
||
return
1
make
||
return
1
phpize7
./configure
--prefix
=
/usr
--with-php-config
=
/usr/bin/php-config7
make
}
package
()
{
check
()
{
cd
"
$builddir
"
make
INSTALL_ROOT
=
"
$pkgdir
"
/
install
||
return
1
install
-d
"
$pkgdir
"
/etc/php7/conf.d
||
return
1
echo
"extension=
$_pkgreal
.so"
>
"
$pkgdir
"
/etc/php7/conf.d/
$_pkgreal
.ini
make
NO_INTERACTION
=
1
REPORT_EXIT_STATUS
=
1
test
}
check
()
{
package
()
{
cd
"
$builddir
"
make
test
make
INSTALL_ROOT
=
"
$pkgdir
"
/
install
install
-d
"
$pkgdir
"
/etc/php7/conf.d
echo
"extension=
$_pkgreal
.so"
>
"
$pkgdir
"
/etc/php7/conf.d/
$_pkgreal
.ini
}
sha512sums
=
"
31d5b032c5d6bfb029328acd2f4ac42adf554137f68f61643cb004db8f596a05ab763e93dae2705c383924b4ecfdac8410708406b84bfe1fd9
83
e
85
99e534358
rdkafka-3.0.5.tgz"
sha512sums
=
"
83bc72106e047b5b2af8f48eccd48ef8a374a8af5440f6aa83aaeadd62c07995b7dc534feb22c2e0183cbb582f72593d3cd02441fca
83
f
85
f0795f0d63a84f23
rdkafka-3.0.5.tgz"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment