I want to create a PKGBUILD file for a library (bcftools) and I found an AUR package for that. The problem is that the PKGBUILD sets some options that are not suitable for my system.
Here is the PKGBUILD:
# Maintainer: Andrew O'Neill <andrew at haunted dot sh>
# Contributor: Christian Krause ("wookietreiber") <[email protected]>
pkgname=bcftools
pkgver=1.17
pkgrel=1
pkgdesc='A program for variant calling and manipulating files in the Variant Call Format (VCF) and its binary counterpart BCF'
arch=('x86_64')
url='https://samtools.github.io/bcftools'
license=('GPL')
depends=('gsl' 'htslib' 'python-matplotlib' 'python')
source=("https://github.com/samtools/${pkgname}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.bz2")
sha256sums=('01f75d8e701d85b2c759172412009cc04f29b61616ace2fa75116123de4596cc')
build() {
cd "${pkgname}-${pkgver}"
./configure \
--prefix=/usr \
--enable-libgsl \
--with-bcf-plugin-dir=/usr/lib/${pkgname} \
--with-cblas=gslcblas \
--with-htslib=system
make
}
package() {
cd "${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
}
In the build() phase it uses the configure script with the --with-htslib=system option. This option is what breaks my installation process. Is there a way to ask the user when executing makepkg -si for a choice, say use the --with-htslib option or not ?
P.S. I know how to build the lib from the source, I just want to know if there is a way to install it from AUR.