aboutsummaryrefslogblamecommitdiffstats
path: root/community/composer/APKBUILD
blob: 3dd3159e550d27c34cf888e619bf9684cc81ec5c (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                         
                                           
                
            
        
                                    
                              
             
             
                                                                        
                                                                                      

           
                                                                                     

 

                    
                                      

 
                                                                                                                                                                  
# Contributor: Nathan Johnson <nathan@nathanjohnson.info>
# Maintainer: Dave Hall <skwashd@gmail.com>
pkgname=composer
pkgver=1.8.6
pkgrel=0
pkgdesc="Dependency manager for PHP"
url="https://getcomposer.org/"
arch="noarch"
license="MIT"
depends="php7 php7-phar php7-json php7-openssl php7-mbstring php7-iconv"
source="$pkgname-$pkgver.phar::https://getcomposer.org/download/$pkgver/$pkgname.phar"

package() {
	install -m 0755 -D "$srcdir"/$pkgname-$pkgver.phar "$pkgdir"/usr/bin/$pkgname
}

check() {
	cd "$srcdir"
	php7 $pkgname-$pkgver.phar -Vn
}

sha512sums="a051d2351d409380c41cc16533472c7fe2a67a29ef8377dd7917d2c0b8b2428ffa284e98b42f9bcd2a920941aff5d597397edb447838495a7cff1e2a0963d875  composer-1.8.6.phar"