Örneğimizde rsync paketi olsun..
1- Şablon Oluşturalım
2- Paket Yapalım
3- md5sums Değerini Düzenleyelim
4- Tekrar Paket oluşturma komutunu verelim
Configure found the following issues:
- Failed to find xxhash.h for xxhash checksum support.
- Failed to find zstd.h for zstd compression support.
See the INSTALL file for hints on how to install the missing libraries and/or
how to generate (or fetch) manpages:
https://github.com/WayneD/rsync/blob/master/INSTALL.md
To disable one or more features, the relevant configure options are:
--disable-xxhash
--disable-zstd
configure.sh: error: Aborting configure run
ERROR: Failed to build package. Action: setup
ERROR: Process: build failed. Exited with 1.
5-Ek Özellikler(more features) Düzenleniyor
arch=('x86_64')
cd $name-$version
setup(){
./configure --prefix=/usr \
--libdir=/usr/lib64/ \
$(use_opt zstd --enable-zstd --disable-zstd) \
$(use_opt xxhash --enable-xxhash --disable-xxhash)
}
Kısacası;
#!/usr/bin/env bash
name='rsync'
release='1'
version='3.2.7'
url='https://example.org'
description='Rsync is a tool for syncing files.'
email='bk@gmail.com'
maintainer='bk'
license=('GPLv3')
source=("https://download.samba.org/pub/rsync/src/rsync-$version.tar.gz")
depends=()
makedepends=()
md5sums=('f216f350ef56b9ba61bc313cb6ec2ed6')
group=(net.misc)
uses=()
uses_extra=(zstd xxhash)
arch=('x86_64')
cd $name-$version
setup(){
./configure --prefix=/usr \
--libdir=/usr/lib64/ \
$(use_opt zstd --enable-zstd --disable-zstd) \
$(use_opt xxhash --enable-xxhash --disable-xxhash)
}
build(){
make -j`nproc`
}
package(){
make install -j`nproc`
}