Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README with a link to the AUR package for Archlinux #28

Closed
aurelg opened this issue Sep 14, 2020 · 3 comments
Closed

Update README with a link to the AUR package for Archlinux #28

aurelg opened this issue Sep 14, 2020 · 3 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@aurelg
Copy link

aurelg commented Sep 14, 2020

I just created an AUR package for Archlinux. You can find it here: https://aur.archlinux.org/packages/fclones-git/
It might be worth adding its name and a link to it in the README file.

@pkolaczk
Copy link
Owner

How can I make such packages by myself? I'm not using arch unfortunately, but is there any way to cross compile from ubuntu?

@aurelg
Copy link
Author

aurelg commented Sep 15, 2020

With Arch, packages outside official repositories are usually distributed with AUR. All AUR requires is a PKGBUILD file providing instructions to download, build and create the Arch package locally.

Here are links to:

  • The AUR submission guidelines, you'll see that AUR can be used to provide binary packages as well.
  • The PKGBUILD I created to let other arch users build and create a package for fclones on their machines (the link to this PKGBUILD can be found on the fclones-git AUR page I posted above).

You can build the package wherever Docker runs, with the following Dockerfile:

FROM archlinux:latest

# Update
RUN pacman --noconfirm -qSyu
RUN pacman --noconfirm -qS \
  base-devel \
  git

# Add and login as user makepkg, w/passwordless sudo
RUN useradd -G wheel -m makepkg
RUN echo "%wheel ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers
USER makepkg
WORKDIR /home/makepkg

# Uncomment the following lines to build fclones-git from a PKGBUILD file in the
# current working directory on the Docker host

COPY PKGBUILD /home/makepkg
RUN makepkg -si --noconfirm

# Uncomment the following lines to build fclones-git from the PKGBUILD that can
# be downloaded from AUR

# RUN git clone https://aur.archlinux.org/fclones-git.git \
#   && cd fclones-git \
#   && makepkg -si --noconfirm

Then run the usual docker build ..

Should you have any question, just ask.

@pkolaczk
Copy link
Owner

I added the link to your package in README.md.
Thank you!

@pkolaczk pkolaczk added the documentation Improvements or additions to documentation label Sep 19, 2020
@pkolaczk pkolaczk self-assigned this Sep 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants