iglunix/pkgs/curl/build.sh

48 lines
820 B
Bash
Raw Normal View History

2021-02-03 11:05:38 +00:00
pkgver=7.75.0
2021-01-17 19:15:45 +00:00
pkgname=curl
pkgrel=1
bad=""
ext="doc:dev"
fetch() {
2021-02-03 11:05:38 +00:00
curl -L "https://github.com/curl/curl/releases/download/curl-7_75_0/curl-7.75.0.tar.xz" -o $pkgname-$pkgver.tar.gz
2021-01-17 19:15:45 +00:00
tar -xf $pkgname-$pkgver.tar.gz
}
build() {
cd $pkgname-$pkgver
mkdir build
cd build
cmake -G Ninja ../ \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
samu
}
package() {
cd $pkgname-$pkgver
cd build
DESTDIR=$pkgdir samu install
rm -r $pkgdir/usr/share
rm -r $pkgdir/usr/include
rm -r $pkgdir/usr/lib/pkgconfig
rm -r $pkgdir/usr/lib/cmake
}
2021-01-31 11:09:14 +00:00
package_dev() {
cd $pkgname-$pkgver
cd build
DESTDIR=$pkgdir samu install
rm -r $pkgdir/usr/share
rm -r $pkgdir/usr/bin
rm $pkgdir/usr/lib/*.so
rm $pkgdir/usr/lib/*.so.*
2021-02-03 13:03:52 +00:00
env
2021-01-17 19:15:45 +00:00
}
license() {
cd $pkgname-$pkgver
cat COPYING
}