You are not logged in.
I copy 2 files into $pkgdir, but the final package contains only 1 of them. Where is the second file?
Here is a dummy PKGBUILD for testing:
pkgname='dummy'
pkgver=1
pkgrel=1
arch=('i686' 'x86_64')
makedepends=('git')
source=("$pkgname::git+https://github.com/biblissima/collatinus#branch=Daemon")
sha256sums=('SKIP')
package() {
cd "$pkgname/bin/data"
mkdir "$pkgdir/data"
cp --target-directory="$pkgdir/data/" abreviations.la
cp --target-directory="$pkgdir/data/" lemmes.en
ls -l "$pkgdir/data/"
#exit
}
Two files, "abreviations.la" and "lemmes.en", are copied, and "ls" proves these files were copied, but the package contains only "lemmes.en". If I uncomment "exit", then packaging terminates and I can see both files in the "$pkgdir/data/". Does it mean makepkg deletes some files by itself? Could I have both files in the package?
Last edited by Vitrum-cnkj34kr8 (2019-09-07 21:04:38)
Offline
If I copy full dir "data" then only files "*.la" will be missing:
cp -v --recursive data "$pkgdir/"
So, makepkg does not like files with extension ".la"?
Offline
They are deleted on the step: "Removing libtool files..."
/usr/share/makepkg/tidy/libtool.sh
find . ! -type d -name "*.la" -exec rm -f -- '{}' +
Solution:
options=('libtool')
Last edited by Vitrum-cnkj34kr8 (2019-09-07 21:04:19)
Offline
Please learn to use the edit button and stop bumping the thread.
Offline
You need an options array:
man PKGBUILD
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline