Permalink
Browse files

Add a HOWTO.

  • Loading branch information...
1 parent 2e93544 commit 9edbe3b5847d6e938de05a8697ddf719cb9e0659 @SimonSapin SimonSapin committed Sep 5, 2011
Showing with 57 additions and 0 deletions.
  1. +55 −0 HOWTO
  2. +2 −0 README
View
55 HOWTO
@@ -0,0 +1,55 @@
+Arch Linux packages mini-HOWTO
+==============================
+
+In any case, the Arch Linux wiki is the reference:
+https://wiki.archlinux.org/index.php/Creating_Packages
+
+
+Source packages
+---------------
+
+Source packages are made of a PKGBUILD file (required) and some other
+(optional) files such as patches or *.install files (containing
+eg. post_install scripts)
+
+https://wiki.archlinux.org/index.php/PKGBUILD
+
+
+AUR
+---
+
+https://wiki.archlinux.org/index.php/AUR
+https://aur.archlinux.org/
+
+"The Arch User Repository (AUR) is a community-driven repository for
+Arch users."
+
+Source packages (in a tarball) are what is sent to the AUR.
+
+
+Building "binary" packages
+--------------------------
+
+Change to a directory containing a PKGBUILD and associated files and build
+with the "makepkg" command. See "man makepkg" for details. The result is
+a *.pkg.tar.xz file.
+
+
+Custom repository
+-----------------
+
+https://wiki.archlinux.org/index.php/Custom_local_repository#Custom_local_repository
+
+Get a set of *.pkg.tar.xz files together in a directory and create (or update)
+a repository database with the "repo-add" command. Eg:
+
+ repo-add kozea.db.tar.gz *.pkg.tar.xz
+
+Then serve this directory over HTTP, NFS or something and add it to
+/etc/pacman.conf on machines where you want to install the packages:
+
+ [kozea]
+ Server = file:///home/arch-repository
+
+While you’re at it, you might want to uncomment ShowSize and TotalDownload
+in the [options] category. See "man pacman.conf".
View
2 README
@@ -1,5 +1,7 @@
These are the source files for Arch Linux packages made at Kozea.
+See the HOWTO file for details on how to build and use these packages.
+
Packages are:
gedit-source-code-browser-git

0 comments on commit 9edbe3b

Please sign in to comment.