[arch-projects] [PATCH] [abs] Remove VCS PKGBUILD prototypes

Daniel Wallace danielwallace at gtmanfred.com
Sun Apr 7 21:17:11 EDT 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

"Jason St. John" <jstjohn at purdue.edu> wrote:

>From: "Jason St. John" <jstjohn at purdue.edu>
>
>pacman 4.1 greatly simplied the use of VCS PKGBUILDs. Usage of VCS
>PKGBUILDs is documented in PKGBUILD(5) and on the ArchWiki. Including a
>separate prototype for each VCS is unnecessary, and they should be
>removed.
>
>Signed-off-by: Jason St. John <jstjohn at purdue.edu>
>---
>prototypes/PKGBUILD-bzr.proto   | 64
>---------------------------------------
>prototypes/PKGBUILD-cvs.proto   | 65
>----------------------------------------
>prototypes/PKGBUILD-darcs.proto | 66
>-----------------------------------------
>prototypes/PKGBUILD-git.proto   | 64
>---------------------------------------
>prototypes/PKGBUILD-hg.proto    | 65
>----------------------------------------
>prototypes/PKGBUILD-svn.proto   | 63
>---------------------------------------
> 6 files changed, 387 deletions(-)
> delete mode 100644 prototypes/PKGBUILD-bzr.proto
> delete mode 100644 prototypes/PKGBUILD-cvs.proto
> delete mode 100644 prototypes/PKGBUILD-darcs.proto
> delete mode 100644 prototypes/PKGBUILD-git.proto
> delete mode 100644 prototypes/PKGBUILD-hg.proto
> delete mode 100644 prototypes/PKGBUILD-svn.proto
>
>diff --git a/prototypes/PKGBUILD-bzr.proto
>b/prototypes/PKGBUILD-bzr.proto
>deleted file mode 100644
>index 81f145f..0000000
>--- a/prototypes/PKGBUILD-bzr.proto
>+++ /dev/null
>@@ -1,64 +0,0 @@
>-# This is an example PKGBUILD file. Use this as a start to creating
>your own,
>-# and remove these comments. For more information, see 'man PKGBUILD'.
>-# NOTE: Please fill out the license field for your package! If it is
>unknown,
>-# then please put 'unknown'.
>-
>-# See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
>-# for more information on packaging from Bazaar sources.
>-
>-# Maintainer: Your Name <youremail at domain.com>
>-pkgname=NAME-bzr
>-pkgver=VERSION
>-pkgrel=1
>-pkgdesc=""
>-arch=()
>-url=""
>-license=('GPL')
>-groups=()
>-depends=()
>-makedepends=('bzr')
>-provides=()
>-conflicts=()
>-replaces=()
>-backup=()
>-options=()
>-install=
>-source=()
>-noextract=()
>-md5sums=() #generate with 'makepkg -g'
>-
>-_bzrtrunk=BZRURL
>-_bzrmod=MODNAME
>-
>-build() {
>-  cd "$srcdir"
>-  msg "Connecting to Bazaar server...."
>-
>-  if [[ -d "$_bzrmod" ]]; then
>-    cd "$_bzrmod" && bzr --no-plugins pull "$_bzrtrunk" -r "$pkgver"
>-    msg "The local files are updated."
>-  else
>-    bzr --no-plugins branch "$_bzrtrunk" "$_bzrmod" -q -r "$pkgver"
>-  fi
>-
>-  msg "Bazaar checkout done or server timeout"
>-  msg "Starting build..."
>-
>-  rm -rf "$srcdir/$_bzrmod-build"
>-  cp -r "$srcdir/$_bzrmod" "$srcdir/$_bzrmod-build"
>-  cd "$srcdir/$_bzrmod-build"
>-
>-  #
>-  # BUILD HERE
>-  #
>-  ./autogen.sh
>-  ./configure --prefix=/usr
>-  make
>-}
>-
>-package() {
>-  cd "$srcdir/$_bzrmod-build"
>-  make DESTDIR="$pkgdir/" install
>-}
>-
>-# vim:set ts=2 sw=2 et:
>diff --git a/prototypes/PKGBUILD-cvs.proto
>b/prototypes/PKGBUILD-cvs.proto
>deleted file mode 100644
>index 982c149..0000000
>--- a/prototypes/PKGBUILD-cvs.proto
>+++ /dev/null
>@@ -1,65 +0,0 @@
>-# This is an example PKGBUILD file. Use this as a start to creating
>your own,
>-# and remove these comments. For more information, see 'man PKGBUILD'.
>-# NOTE: Please fill out the license field for your package! If it is
>unknown,
>-# then please put 'unknown'.
>-
>-# See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
>-# for more information on packaging from CVS sources.
>-
>-# Maintainer: Your Name <youremail at domain.com>
>-pkgname=NAME-cvs
>-pkgver=VERSION
>-pkgrel=1
>-pkgdesc=""
>-arch=()
>-url=""
>-license=('GPL')
>-groups=()
>-depends=()
>-makedepends=('cvs')
>-provides=()
>-conflicts=()
>-replaces=()
>-backup=()
>-options=()
>-install=
>-source=()
>-noextract=()
>-md5sums=() #generate with 'makepkg -g'
>-
>-_cvsroot=CVSROOT
>-_cvsmod=MODNAME
>-
>-build() {
>-  cd "$srcdir"
>-  msg "Connecting to $_cvsmod.sourceforge.net CVS server...."
>-
>-  if [[ -d "$_cvsmod/CVS" ]]; then
>-    cd "$_cvsmod"
>-    cvs -z3 update -d
>-  else
>-    cvs -z3 -d "$_cvsroot" co -D "$pkgver" -f "$_cvsmod"
>-    cd "$_cvsmod"
>-  fi
>-
>-  msg "CVS checkout done or server timeout"
>-  msg "Starting build..."
>-
>-  rm -rf "$srcdir/$_cvsmod-build"
>-  cp -r "$srcdir/$_cvsmod" "$srcdir/$_cvsmod-build"
>-  cd "$srcdir/$_cvsmod-build"
>-
>-  #
>-  # BUILD HERE
>-  #
>-  ./autogen.sh
>-  ./configure --prefix=/usr
>-  make
>-}
>-
>-package() {
>-  cd "$srcdir/$_cvsmod-build"
>-  make DESTDIR="$pkgdir/" install
>-}
>-
>-# vim:set ts=2 sw=2 et:
>diff --git a/prototypes/PKGBUILD-darcs.proto
>b/prototypes/PKGBUILD-darcs.proto
>deleted file mode 100644
>index 979e9b5..0000000
>--- a/prototypes/PKGBUILD-darcs.proto
>+++ /dev/null
>@@ -1,66 +0,0 @@
>-# This is an example PKGBUILD file. Use this as a start to creating
>your own,
>-# and remove these comments. For more information, see 'man PKGBUILD'.
>-# NOTE: Please fill out the license field for your package! If it is
>unknown,
>-# then please put 'unknown'.
>-
>-# See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
>-# for more information on packaging from darcs sources.
>-
>-# Maintainer: Your Name <youremail at domain.com>
>-pkgname=NAME-darcs
>-pkgver=VERSION
>-pkgrel=1
>-pkgdesc=""
>-arch=()
>-url=""
>-license=('GPL')
>-groups=()
>-depends=()
>-makedepends=('darcs')
>-provides=()
>-conflicts=()
>-replaces=()
>-backup=()
>-options=()
>-install=
>-source=()
>-noextract=()
>-md5sums=() #generate with 'makepkg -g'
>-
>-_darcstrunk=DARCSURL
>-_darcsmod=MODNAME
>-
>-build() {
>-  cd "$srcdir"
>-  msg "Checking for previous build...."
>-
>-  if [[ -d "$_darcsmod/_darcs" ]]; then
>-    msg "Retrieving missing patches"
>-    cd "$_darcsmod"
>-    darcs pull -a "$_darcstrunk/$_darcsmod"
>-  else
>-    msg "Retrieving complete sources"
>-    darcs get --partial --set-scripts-executable
>"$_darcstrunk/$_darcsmod"
>-    cd "$_darcsmod"
>-  fi
>-
>-  rm -rf "$srcdir/$_darcsmod-build"
>-  cp -r "$srcdir/$_darcsmod" "$srcdir/$_darcsmod-build"
>-  cd "$srcdir/$_darcsmod-build"
>-
>-  msg "Starting build..."
>-
>-  #
>-  # BUILD HERE
>-  #
>-  ./autogen.sh
>-  ./configure --prefix=/usr
>-  make
>-}
>-
>-package() {
>-  cd "$srcdir/$_darcsmod-build"
>-  make DESTDIR="$pkgdir/" install
>-}
>-
>-# vim:set ts=2 sw=2 et:
>diff --git a/prototypes/PKGBUILD-git.proto
>b/prototypes/PKGBUILD-git.proto
>deleted file mode 100644
>index 05b721b..0000000
>--- a/prototypes/PKGBUILD-git.proto
>+++ /dev/null
>@@ -1,64 +0,0 @@
>-# This is an example PKGBUILD file. Use this as a start to creating
>your own,
>-# and remove these comments. For more information, see 'man PKGBUILD'.
>-# NOTE: Please fill out the license field for your package! If it is
>unknown,
>-# then please put 'unknown'.
>-
>-# See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
>-# for more information on packaging from GIT sources.
>-
>-# Maintainer: Your Name <youremail at domain.com>
>-pkgname=NAME-git
>-pkgver=VERSION
>-pkgrel=1
>-pkgdesc=""
>-arch=()
>-url=""
>-license=('GPL')
>-groups=()
>-depends=()
>-makedepends=('git')
>-provides=()
>-conflicts=()
>-replaces=()
>-backup=()
>-options=()
>-install=
>-source=()
>-noextract=()
>-md5sums=() #generate with 'makepkg -g'
>-
>-_gitroot=GITURL
>-_gitname=MODENAME
>-
>-build() {
>-  cd "$srcdir"
>-  msg "Connecting to GIT server...."
>-
>-  if [[ -d "$_gitname" ]]; then
>-    cd "$_gitname" && git pull origin
>-    msg "The local files are updated."
>-  else
>-    git clone "$_gitroot" "$_gitname"
>-  fi
>-
>-  msg "GIT checkout done or server timeout"
>-  msg "Starting build..."
>-
>-  rm -rf "$srcdir/$_gitname-build"
>-  git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
>-  cd "$srcdir/$_gitname-build"
>-
>-  #
>-  # BUILD HERE
>-  #
>-  ./autogen.sh
>-  ./configure --prefix=/usr
>-  make
>-}
>-
>-package() {
>-  cd "$srcdir/$_gitname-build"
>-  make DESTDIR="$pkgdir/" install
>-}
>-
>-# vim:set ts=2 sw=2 et:
>diff --git a/prototypes/PKGBUILD-hg.proto
>b/prototypes/PKGBUILD-hg.proto
>deleted file mode 100644
>index 8474533..0000000
>--- a/prototypes/PKGBUILD-hg.proto
>+++ /dev/null
>@@ -1,65 +0,0 @@
>-# This is an example PKGBUILD file. Use this as a start to creating
>your own,
>-# and remove these comments. For more information, see 'man PKGBUILD'.
>-# NOTE: Please fill out the license field for your package! If it is
>unknown,
>-# then please put 'unknown'.
>-
>-# See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
>-# for more information on packaging from Mercurial(hg) sources.
>-
>-# Maintainer: Your Name <youremail at domain.com>
>-pkgname=NAME-hg
>-pkgver=VERSION
>-pkgrel=1
>-pkgdesc=""
>-arch=()
>-url=""
>-license=('GPL')
>-groups=()
>-depends=()
>-makedepends=('mercurial')
>-provides=()
>-conflicts=()
>-replaces=()
>-backup=()
>-options=()
>-install=
>-source=()
>-noextract=()
>-md5sums=() #generate with 'makepkg -g'
>-
>-_hgroot=HGURL
>-_hgrepo=REPONAME
>-
>-build() {
>-  cd "$srcdir"
>-  msg "Connecting to Mercurial server...."
>-
>-  if [[ -d "$_hgrepo" ]]; then
>-    cd "$_hgrepo"
>-    hg pull -u
>-    msg "The local files are updated."
>-  else
>-    hg clone "$_hgroot" "$_hgrepo"
>-  fi
>-
>-  msg "Mercurial checkout done or server timeout"
>-  msg "Starting build..."
>-
>-  rm -rf "$srcdir/$_hgrepo-build"
>-  cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
>-  cd "$srcdir/$_hgrepo-build"
>-
>-  #
>-  # BUILD HERE
>-  #
>-  ./autogen.sh
>-  ./configure --prefix=/usr
>-  make
>-}
>-
>-package() {
>-  cd "$srcdir/$_hgrepo-build"
>-  make DESTDIR="$pkgdir/" install
>-}
>-
>-# vim:set ts=2 sw=2 et:
>diff --git a/prototypes/PKGBUILD-svn.proto
>b/prototypes/PKGBUILD-svn.proto
>deleted file mode 100644
>index aff5ca9..0000000
>--- a/prototypes/PKGBUILD-svn.proto
>+++ /dev/null
>@@ -1,63 +0,0 @@
>-# This is an example PKGBUILD file. Use this as a start to creating
>your own,
>-# and remove these comments. For more information, see 'man PKGBUILD'.
>-# NOTE: Please fill out the license field for your package! If it is
>unknown,
>-# then please put 'unknown'.
>-
>-# See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
>-# for more information on packaging from SVN sources.
>-
>-# Maintainer: Your Name <youremail at domain.com>
>-pkgname=NAME-svn
>-pkgver=VERSION
>-pkgrel=1
>-pkgdesc=""
>-arch=()
>-url=""
>-license=('GPL')
>-groups=()
>-depends=()
>-makedepends=('subversion')
>-provides=()
>-conflicts=()
>-replaces=()
>-backup=()
>-options=()
>-install=
>-source=()
>-noextract=()
>-md5sums=() #generate with 'makepkg -g'
>-
>-_svntrunk=SVNURL
>-_svnmod=MODNAME
>-
>-build() {
>-  cd "$srcdir"
>-  msg "Connecting to SVN server...."
>-
>-  if [[ -d "$_svnmod/.svn" ]]; then
>-    (cd "$_svnmod" && svn up -r "$pkgver")
>-  else
>-    svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
>-  fi
>-
>-  msg "SVN checkout done or server timeout"
>-  msg "Starting build..."
>-
>-  rm -rf "$srcdir/$_svnmod-build"
>-  svn export "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
>-  cd "$srcdir/$_svnmod-build"
>-
>-  #
>-  # BUILD HERE
>-  #
>-  ./autogen.sh
>-  ./configure --prefix=/usr
>-  make
>-}
>-
>-package() {
>-  cd "$srcdir/$_svnmod-build"
>-  make DESTDIR="$pkgdir/" install
>-}
>-
>-# vim:set ts=2 sw=2 et:
>--
>1.8.2

If I remember correctly, cvs and darcs are not supported in pacman yet.  I know at least darcs isn't.  So they shouldn't be removed.
- --
Sent from my Android Phone.
Daniel Wallace
Arch Linux Trusted User
GTManfred
-----BEGIN PGP SIGNATURE-----
Version: APG v1.0.8

iQFUBAEBCAA+BQJRYhqXNxxEYW5pZWwgV2FsbGFjZSAoZ3RtYW5mcmVkKSA8ZGFu
aWVsLndhbGxhY2VAZ2F0ZWNoLmVkdT4ACgkQX6XlVE8BDUgPZggAnHcAnrN6vrQf
dlSMpZBZeoR7B2yGtsQkermLuBrBXknsHFc8eKd/yoJ6T7DSOnaMZ0nWT2ddFPeo
XOVU3b3ElyQUb7cx97MkTOkp/Lj9hjTU6oKYPwn/m+/KDTmosR+IXlC61Bri6dYW
lUD9A4lAGtUL/nC1u9MqCcpHpKqIm0SF/laoXAZH7o1Iwlr2ibzZbNwOYTdr5UN+
74pN2/eZ9e4Sink1x4Z4bxnxL4SREimkOnf3P7DZ4fz8+HeLClz/XWR1OoFZ2kln
d+7w359QITzyws3Nxs6O1eabdB8LLhFW7ZLTAMKueBjGP2PQ//te968A0idT4mSz
BgiOSm/xpQ==
=npC0
-----END PGP SIGNATURE-----



More information about the arch-projects mailing list