Sample Header Ad - 728x90

Archlinux proper PKGBUILD: Python executable error

1 vote
1 answer
475 views
In a [previous question](https://unix.stackexchange.com/questions/152368/create-pkgbuild-from-deb) , I asked about how to write a PKGBUILD to install a binary .deb package. The solution was to extract the contents of the .deb and copy the data to the archlinux package fakeroot, "${pkgdir}/". That means if the .deb contains a data.tar.gz with the binaries stored in a usr/lib directory, the process to install this package is (In the PKGBUILD): package() { cd $srcdir tar -xvzf data.tar.gz install -dm755 "${pkgdir}/usr/lib" cp -r -f "${srcdir}/usr/lib" "${pkgdir}/" } However if I do that the package is installed successfully, but I cannot open the binaries (Written in python). If I execute a binary installed in that way, returns this error: > Cannot open self [path to executable] or file [path to executable].pkg On the other hand, if I write the PKGBUILD in the wrong way, that is, copying the binaries directly to the system root during package(): cp -r -f "${srcdir}/usr/lib "/" The programs work perfectly. **Is there something I'm missing?** [Here](https://github.com/Manu343726/biicode-aur) is the package.
Asked by Manu343726 (228 rep)
Sep 6, 2014, 11:00 AM
Last activity: Jan 16, 2017, 05:00 AM