Coder Social home page Coder Social logo

Comments (3)

pkolaczk avatar pkolaczk commented on June 24, 2024

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

from fclones.

aurelg avatar aurelg commented on June 24, 2024

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.

from fclones.

pkolaczk avatar pkolaczk commented on June 24, 2024

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

from fclones.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.