aboutsummaryrefslogblamecommitdiffstats
path: root/main/execline/APKBUILD
blob: a8837c4f001fe329b5804d0f7bee70c69317fef9 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                    
                                             
                
              
        



                                                                                                
                
                               
                                                       
                                                                      

         
                     


                                     
                                   

                                  


           
                                      


                                                                              

 


                                           
                                                                 

 




                                       
            
                                                                                                                                                         
 
# Maintainer: Laurent Bercot <ska-devel@skarnet.org>
# Contributor: John Regan <john@jrjrtech.com>
pkgname=execline
pkgver=2.9.0.1
pkgrel=0
pkgdesc="A small scripting language, to be used in place of a shell in non-interactive scripts."
url="http://skarnet.org/software/$pkgname/"
arch="all"
license="ISC"
options="!check"
makedepends="skalibs-dev>=2.12"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
source="https://skarnet.org/software/execline/execline-$pkgver.tar.gz"

build() {
	./configure \
		--enable-shared \
		--enable-static \
		--disable-allstatic \
		--libdir=/usr/lib \
		--with-dynlib=/lib
	make
}

package() {
	make DESTDIR="$pkgdir" install
	# Compat symlink for #!/usr/bin/execlineb shebangs, remove if usrmerge
	mkdir -p "$pkgdir/usr/bin"
	ln -s ../../bin/execlineb "$pkgdir/usr/bin/execlineb"
}

doc() {
	default_doc
	mkdir -p "$subpkgdir/usr/share/doc"
	cp -a "$builddir/doc" "$subpkgdir/usr/share/doc/$pkgname"
}

static() {
	default_static
	rmdir -p "$pkgdir"/usr/lib || :
}

sha512sums="
8115a7e0e83789cfd85750fc8e96eea0201dbf6f7d1f194e5c0a008ebf40d8fad8b802a5209d3fe9805eeb9b7542af306d5328e159a15bd7425a64ef1a51ebc3  execline-2.9.0.1.tar.gz
"