You are not logged in.

#1 2013-05-01 08:55:57

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,920

Possible updated packer PKGBUILD

Noticed that PKGBUILD for packer is out of date wondered if this works

# Maintainer: Kyle Keen <keenerd@gmail.com>
# Contributor: Mr Green <mrgreen@archbang.org>

pkgname=packer-git
_gitname=packer
pkgver=234.cfc8648
pkgrel=1
pkgdesc="Bash wrapper for pacman and aur"
arch=('any')
url="http://github.com/keenerd/packer"
license=('GPL')
depends=('grep' 'sed' 'bash' 'curl' 'pacman' 'jshon')
optdepends=('sudo: install and update packages as non-root' 'customizepkg: apply customizepkg modifications')
_gitname='packer'
makedepends=('git')
source=('git://github.com/keenerd/packer.git')
md5sums=('SKIP')

pkgver() {
cd $_gitname
echo $(git rev-list --count master).$(git rev-parse --short master)
}

package() {
  cd $_gitname
  mkdir -p "$pkgdir/usr/bin/"
  mkdir -p "$pkgdir/usr/share/man/man8/"
  install -m 755 packer "$pkgdir/usr/bin/packer"
  install -m 644 packer.8 "$pkgdir/usr/share/man/man8/packer.8"
}

Edit: updated 2/5/13


Comments, suggestions please feel free to contact me mrgreen(at)archbang(dot)org

Offline

#2 2013-05-01 14:30:53

pablokal
Administrator
From: Nijmegen, Holland
Registered: 2010-10-12
Posts: 3,634
Website

Re: Possible updated packer PKGBUILD

Download tarball of packer to folder and create a PKGBUILD named file, copy the content of Mr greenS new PGBUILD to it;  open terminal there and

makepkg -sci PKGBUILD
==> Making package: packer cfc8648-1 (Wed May  1 22:07:14 CEST 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning packer git repo...
Cloning into bare repository '/home/paul/Scripts/packer'...
remote: Counting objects: 1121, done.
remote: Compressing objects: 100% (610/610), done.
remote: Total 1121 (delta 377), reused 1103 (delta 361)
Receiving objects: 100% (1121/1121), 208.40 KiB | 325 KiB/s, done.
Resolving deltas: 100% (377/377), done.
==> Validating source files with md5sums...
    packer ... Skipped
==> Extracting sources...
  -> Creating working copy of packer git repo...
Cloning into 'packer'...
done.
==> Starting pkgver()...
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Purging unwanted files...
  -> Compressing man and info pages...
  -> Stripping unneeded symbols from binaries and libraries...
==> Creating package "packer"...
  -> Generating .PKGINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: packer cfc8648-1 (Wed May  1 22:07:16 CEST 2013)
==> Installing package packer with pacman -U...
loading packages...
warning: downgrading package packer (20130217-1 => cfc8648-1)
resolving dependencies...
looking for inter-conflicts...

Packages (1): packer-cfc8648-1

Total Installed Size:   0.05 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                     [######################] 100%
(1/1) checking package integrity                   [######################] 100%
(1/1) loading package files                        [######################] 100%
(1/1) checking for file conflicts                  [######################] 100%
(1/1) checking available disk space                [######################] 100%
(1/1) downgrading packer                           [######################] 100%
==> Cleaning up...

So if you change  pkgvers from  cfc8648 to 20130501 you will be fine.


Getting your questions answered here at ArchBang Forums
Please! Always give hardware info, if there is a chance that 's relevant: #lspci -vnn
On Arch(bang) and Openbox: http://stillstup.blogspot.com/

Offline

#3 2013-05-02 00:25:25

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,920

Re: Possible updated packer PKGBUILD

Updated my PKGBUILD to use the no-annotated-tag example for pkgver() so that there is always an increasing version number:

pkgver() {
cd $_gitname
echo $(git rev-list --count master).$(git rev-parse --short master)
} 

See https://aur.archlinux.org/packages/packer/


Comments, suggestions please feel free to contact me mrgreen(at)archbang(dot)org

Offline

Board footer

Powered by FluxBB