Package Details: port-bin 1.10.0-1

Git Clone URL: https://aur.archlinux.org/port-bin.git (read-only, click to copy)
Package Base: port-bin
Description: A ship runner and manager for Urbit OS
Upstream URL: https://github.com/urbit/port
Keywords: urbit
Licenses: MIT, custom:chromium
Conflicts: port
Submitter: spalf
Maintainer: spalf
Last Packager: spalf
Votes: 2
Popularity: 0.000000
First Submitted: 2021-05-31 14:34 (UTC)
Last Updated: 2022-12-13 17:36 (UTC)

Latest Comments

spalf commented on 2021-05-31 18:11 (UTC)

okay thanks alot, i just pushed the changes !

knutsen commented on 2021-05-31 18:05 (UTC)

Indeed, since this is an electron package and it comes with it own set of libraries to link to, you actually want to copy all the source files to /usr/share/port and link /usr/share/port/port to /usr/bin/port.

Here is a package() function that would work:

package() {
    install -d -m755 "$pkgdir"/usr/bin
    install -d -m755 "$pkgdir"/usr/share/port
    cp -r "$srcdir"/port-linux-x64/* "$pkgdir"/usr/share/port
    ln -s /usr/share/port/port "$pkgdir"/usr/bin/port
}

knutsen commented on 2021-05-31 17:10 (UTC) (edited on 2021-05-31 17:21 (UTC) by knutsen)

Hi, that's lovely, but there is a mistake in your PKGBUILD.

You wrote

ln -s "$srcdir"/port-linux-x64/port "$pkgdir"/usr/bin

which breaks, because you just made a symlink to a temporary location, $srcdir most often gets deleted.

You probably intended to move or copy the file (mv or cp). A better option yet would be the install command.

install not only copies files but also changes its ownership and permissions and optionally removes debugging symbols from executables. It combines cp with chown, chmod and strip.

Perhaps you'd like to do this:

install -Dm755 "$srcdir/port-linux-x64/port" "$pkgdir/usr/bin/port"

this also ensures the destination directory exists / is created.

spalf commented on 2021-05-31 14:46 (UTC)

its my first aur package so please be gentle