[arch-projects] [PATCH] [abs] Clean up prototypes (quoting, links in comments, etc.)
From: "Jason St. John" <jstjohn@purdue.edu> Many instances in the prototypes did not contain quotes where variables would be expanded or in arrays (e.g. 'depends=(ruby)'). This commit adds quotes in all identified areas as appropriate. This commit also removes the hard-coded path to gconfpkg in proto-gnome.install. Signed-off-by: Jason St. John <jstjohn@purdue.edu> --- prototypes/PKGBUILD-gnome.proto | 8 ++++---- prototypes/PKGBUILD-haskell.proto | 8 ++++---- prototypes/PKGBUILD-perl.proto | 2 +- prototypes/PKGBUILD-python.proto | 4 ++-- prototypes/PKGBUILD-rubygem.proto | 14 +++++++------- prototypes/proto-gnome.install | 4 ++-- 6 files changed, 20 insertions(+), 20 deletions(-) diff --git a/prototypes/PKGBUILD-gnome.proto b/prototypes/PKGBUILD-gnome.proto index bfffdab..5feae14 100644 --- a/prototypes/PKGBUILD-gnome.proto +++ b/prototypes/PKGBUILD-gnome.proto @@ -3,8 +3,8 @@ # 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/Gnome_package_guidelines for more -# information on Gnome packaging. +# See https://wiki.archlinux.org/index.php/GNOME_Package_Guidelines for more +# information on GNOME packaging. # Maintainer: Your Name <youremail@domain.com> pkgname=NAME @@ -22,8 +22,8 @@ conflicts=() replaces=() backup=() options=() -install=$pkgname.install -source=($pkgname-$pkgver.tar.gz) +install="$pkgname.install" +source=("$pkgname-$pkgver.tar.gz") noextract=() md5sums=() #generate with 'makepkg -g' diff --git a/prototypes/PKGBUILD-haskell.proto b/prototypes/PKGBUILD-haskell.proto index c63001e..2398777 100644 --- a/prototypes/PKGBUILD-haskell.proto +++ b/prototypes/PKGBUILD-haskell.proto @@ -3,12 +3,12 @@ # 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/Haskell_package_guidelines for more +# See https://wiki.archlinux.org/index.php/Haskell_Package_Guidelines for more # information on Haskell packaging. # Maintainer: Your Name <youremail@domain.com> _hkgname=NAME -pkgname=$_hkgname +pkgname="$_hkgname" pkgver=VERSION pkgrel=1 pkgdesc="" @@ -22,8 +22,8 @@ conflicts=() replaces=() backup=() options=() -install=$pkgname.install -source=(http://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkg...) +install="$pkgname.install" +source=("http://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkg...") md5sums=() build() { diff --git a/prototypes/PKGBUILD-perl.proto b/prototypes/PKGBUILD-perl.proto index 26b9c53..afa87a1 100644 --- a/prototypes/PKGBUILD-perl.proto +++ b/prototypes/PKGBUILD-perl.proto @@ -13,7 +13,7 @@ # Maintainer: Your Name <youremail@domain.com> _perlmod=MODNAME _modnamespace=MODULE-NAMESPACE -pkgname=perl-$_perlmod +pkgname="perl-$_perlmod" pkgver=VERSION pkgrel=1 pkgdesc="" diff --git a/prototypes/PKGBUILD-python.proto b/prototypes/PKGBUILD-python.proto index ed8b7d0..c0727b7 100644 --- a/prototypes/PKGBUILD-python.proto +++ b/prototypes/PKGBUILD-python.proto @@ -3,7 +3,7 @@ # 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/Python_Package_Guidelines for more +# See https://wiki.archlinux.org/index.php/Python_Package_Guidelines for more # information on Python packaging. # Maintainer: Your Name <youremail@domain.com> @@ -23,7 +23,7 @@ provides=() conflicts=() replaces=() backup=() -options=(!emptydirs) +options=('!emptydirs') install= source=("https://pypi.python.org/packages/source/$_firstletter/$_pythonname/$_pythonn...") md5sums=() diff --git a/prototypes/PKGBUILD-rubygem.proto b/prototypes/PKGBUILD-rubygem.proto index 84fbd70..7a59fb9 100644 --- a/prototypes/PKGBUILD-rubygem.proto +++ b/prototypes/PKGBUILD-rubygem.proto @@ -3,22 +3,22 @@ # 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/Ruby_Gem_Package_Guidelines for more +# See https://wiki.archlinux.org/index.php/Ruby_Gem_Package_Guidelines for more # information on Ruby Gem packaging. # Maintainer: Your Name <youremail@domain.com> _gemname=GEMNAME -pkgname=ruby-$_gemname +pkgname="ruby-$_gemname" pkgver=VERSION pkgrel=1 pkgdesc="" -arch=(any) +arch=('any') url="" license=('GPL') -depends=(ruby) # Full dependency information is available in the yaml specification -makedepends=(rubygems) -source=(http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem) -noextract=($_gemname-$pkgver.gem) +depends=('ruby') # Full dependency information is available in the YAML specification +makedepends=('rubygems') +source=("http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem") +noextract=("$_gemname-$pkgver.gem") md5sums=() package() { diff --git a/prototypes/proto-gnome.install b/prototypes/proto-gnome.install index 175a146..c8eab83 100644 --- a/prototypes/proto-gnome.install +++ b/prototypes/proto-gnome.install @@ -1,7 +1,7 @@ pkgname=NAME post_install() { - usr/sbin/gconfpkg --install "$pkgname" + gconfpkg --install "$pkgname" update-desktop-database -q } @@ -14,7 +14,7 @@ post_upgrade() { } pre_remove() { - usr/sbin/gconfpkg --uninstall "$pkgname" + gconfpkg --uninstall "$pkgname" } post_remove() { -- 1.8.2
participants (1)
-
Jason St. John