29 lines
		
	
	
	
		
			772 B
		
	
	
	
		
			Text
		
	
	
	
	
	
		
		
			
		
	
	
			29 lines
		
	
	
	
		
			772 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| 
								 | 
							
								# Description: MySQL module for PHP
							 | 
						||
| 
								 | 
							
								# URL:         http://www.php.net
							 | 
						||
| 
								 | 
							
								# Packager:  milisarge
							 | 
						||
| 
								 | 
							
								# Depends on:  mariadb php
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								name=php-mysql
							 | 
						||
| 
								 | 
							
								version=5.6.16
							 | 
						||
| 
								 | 
							
								release=1
							 | 
						||
| 
								 | 
							
								source=(http://php.net/distributions/php-$version.tar.xz)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								build () {
							 | 
						||
| 
								 | 
							
								    cd php-$version
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    ./configure --disable-all \
							 | 
						||
| 
								 | 
							
								                --enable-pdo=shared \
							 | 
						||
| 
								 | 
							
								                --enable-mysqlnd=shared \
							 | 
						||
| 
								 | 
							
								                --with-mysql=shared,mysqlnd \
							 | 
						||
| 
								 | 
							
								                --with-mysqli=shared,mysqlnd \
							 | 
						||
| 
								 | 
							
								                --with-pdo-mysql=shared,mysqlnd
							 | 
						||
| 
								 | 
							
								    
							 | 
						||
| 
								 | 
							
								    make build-modules
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    install -d $PKG/{etc/php/conf.d,usr/lib/php/extensions}
							 | 
						||
| 
								 | 
							
								    install -m 755 modules/*mysql*.so $PKG/usr/lib/php/extensions
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    printf 'extension=%s\n' {mysqlnd,mysql,mysqli,pdo_mysql}.so \
							 | 
						||
| 
								 | 
							
								           > $PKG/etc/php/conf.d/mysql.ini
							 | 
						||
| 
								 | 
							
								}
							 |