Artix Linux Forum

Artix Linux => Package management => Topic started by: cr6 on 01 April 2024, 12:24:00

Title: aria2 small improvement
Post by: cr6 on 01 April 2024, 12:24:00
Hi !

Take a look at the aria2 PKGBUILD (https://gitea.artixlinux.org/packages/aria2/src/branch/master/PKGBUILD)

I think we could simplify the package() function by removing this part:
Code: [Select]
  # add bash completion
  install -d "$pkgdir"/usr/share/bash-completion/completions
  install -m644 "$pkgdir"/usr/share/doc/aria2/bash_completion/aria2c \
    "$pkgdir"/usr/share/bash-completion/completions

and by adding this flag in the build() function:
Code: [Select]
  ./configure \
    --with-bashcompletiondir=/usr/share/bash-completion/completions

 ::)