aboutsummaryrefslogblamecommitdiffstats
path: root/main/libquvi/APKBUILD
blob: 0185c2d4f047f7bfa02361f12070942e908067cb (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                                    
            
        




                                                  

                                                              

                                       


                                                                                                 









                                                                        
                                     



                       



                                 






                                                  

 





                                                                                                                                                                  
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libquvi
pkgver=0.9.4
pkgrel=3
pkgdesc="library for parsing video download links"
url="http://quvi.sourceforge.net/"
arch="all"
license="LGPLv2+"
depends="libquvi-scripts"
depends_dev="libquvi-scripts-dev curl-dev lua5.1-dev"
makedepends="$depends_dev libproxy-dev glib-dev libgcrypt-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://downloads.sourceforge.net/project/quvi/${pkgver%.*}/libquvi/libquvi-$pkgver.tar.xz
	fix-redirects.patch
	"

_builddir="$srcdir"/libquvi-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="8e3f2134a6b3376934bd884b07dcdac5  libquvi-0.9.4.tar.xz
5afe26b25eebe18d955552c7aafaa81a  fix-redirects.patch"
sha256sums="2d3fe28954a68ed97587e7b920ada5095c450105e993ceade85606dadf9a81b2  libquvi-0.9.4.tar.xz
b1367607d46f12c9dae705c9c4a141c2aa8cd04864d740c6cf5284bbd852a0f2  fix-redirects.patch"
sha512sums="287015e370e7b7f98f0f4c3717f5b044c8fcfb8b823c7988cd248e56b5fbbfa1a1aa421fbdafb38d727b79495267ccd4dead71587052117db53f29236268b651  libquvi-0.9.4.tar.xz
1c1152361fc4767ef6411130d2b39681d7e3dcdffe419da78199193902429c7e31075fd2ef3c13309f4d60de66dc821321dc4d83a5d4a136eea625c349754e62  fix-redirects.patch"