mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 02:22:15 +08:00
50 lines
1.4 KiB
Bash
50 lines
1.4 KiB
Bash
#
|
|
# Core Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
pkgname=libfetch
|
|
pkgver=2.33
|
|
pkgrel=2
|
|
pkgdesc="URL based download library"
|
|
arch=('i686' 'x86_64')
|
|
license=('BSD')
|
|
depends=('openssl>=1.0.0')
|
|
url="http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/net/libfetch/"
|
|
source=(Makefile
|
|
http://chakra-project.org/sources/libfetch/$pkgname-$pkgver.tar.gz
|
|
fetch-handle-temp-redirect.patch)
|
|
md5sums=('7dffdd5a81bb32084a2f45e61f70dcf9'
|
|
'ddfed67895c3d33c05f15930381fe9ee'
|
|
'2ee40d7e7d76c39ae5500d89075ef8a6')
|
|
|
|
# keep an upgrade path for older installations
|
|
#PKGEXT='.pkg.tar.gz'
|
|
|
|
# source PKGBUILD && mksource
|
|
mksource() {
|
|
export CVSROOT=:pserver:anoncvs@anoncvs.NetBSD.org:/cvsroot
|
|
D=pkgsrc/net/libfetch
|
|
[ -d "$D" ] && cvs up "$D" || cvs co "$D"
|
|
pushd "$D"
|
|
dirname=$(sed -n 's/DISTNAME=.*\(libfetch-.*$\)/\1/p' Makefile)
|
|
cp -r files $dirname
|
|
tar -czv --exclude=CVS -f ../../../$dirname.tar.gz $dirname
|
|
rm -r $dirname
|
|
popd
|
|
}
|
|
|
|
build() {
|
|
cd $srcdir/${pkgname}-${pkgver}
|
|
cp ../Makefile .
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
make DESTDIR=$pkgdir install
|
|
licdir=$pkgdir/usr/share/licenses/libfetch/
|
|
mkdir -p $licdir
|
|
sed -n -e '/Copyright (c)/,/SUCH DAMAGE\./p' common.c | cut -c '4-' > $licdir/LICENSE
|
|
} |