You are not logged in.

#1 2019-09-07 20:45:04

Vitrum-cnkj34kr8
Member
Registered: 2018-06-19
Posts: 6

[SOLVED] makepkg does not include files into package

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

#2 2019-09-07 20:49:15

Vitrum-cnkj34kr8
Member
Registered: 2018-06-19
Posts: 6

Re: [SOLVED] makepkg does not include files into package

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

#3 2019-09-07 20:57:53

Vitrum-cnkj34kr8
Member
Registered: 2018-06-19
Posts: 6

Re: [SOLVED] makepkg does not include files into package

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

#4 2019-09-07 21:00:02

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] makepkg does not include files into package

Please learn to use the edit button and stop bumping the thread.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2019-09-07 21:08:29

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: [SOLVED] makepkg does not include files into package

You need an options array:

man PKGBUILD

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB