Package Details: qpm v0.11.0-1

Git Clone URL: https://aur.archlinux.org/qpm.git (read-only)
Package Base: qpm
Description: Qt Package Manager
Upstream URL: http://qpm.io
Licenses: LGPL
Provides: qpm
Submitter: sirspudd
Maintainer: sirspudd
Last Packager: sirspudd
Votes: 10
Popularity: 0.220228
First Submitted: 2015-09-09 19:11
Last Updated: 2018-09-18 00:22

Dependencies (2)

Required by (3)

Sources (1)

Latest Comments

sirspudd commented on 2018-09-18 00:35

My apologies for the delaying in addressing this; I have updated the recipe in accordance with @Skycoder42's points

solnce commented on 2018-09-10 10:56

Please update according to Skycoder42's comments. This PKGBUILD is currently broken.

Skycoder42 commented on 2018-06-01 21:20

Please do not use $startdir. It has been deprecated (See https://www.archlinux.org/pacman/PKGBUILD.5.html) and will fail for builds that use the makepkg env vars like BUILDDIR

Instead, you should simply use relative path. Here are the relevant parts from the makepkg that need to be changed:

build() {
  local _qpm_dir="${srcdir}/qpm.io"
  cd $_qpm_dir
  local git_sha1=$(git rev-parse HEAD | cut -c1-8)

  cd $srcdir
  export GOPATH="$srcdir/.."
  go build -ldflags "-X qpm.io/qpm/core.Version=${pkgver} -X qpm.io/qpm/core.Build=${git_sha1}" qpm.io/qpm
}

package() {
  install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
}

Vitrum-cnkj34kr8 commented on 2018-05-29 07:32

qpm v0.11.0
# Maintainer: Donald Carr<sirspudd@gmail.com>
# Upstream URL: http://qpm.io
#
# For improvements/fixes to this package, please send a pull request:
# https://github.com/Cutehacks/qpm

pkgname=qpm
pkgver=v0.11.0
pkgrel=1
pkgdesc='Qt Package Manager'
arch=('x86_64' 'i686')
url='http://qpm.io'
license=('LGPL')
makedepends=('go' 'git')
source=("qpm.io::git://github.com/Cutehacks/qpm#tag=${pkgver}")
sha256sums=('SKIP')

prepare() {
  mkdir src
  mv qpm.io src/
  cd "${srcdir}/src/qpm.io"
  git submodule init
  git submodule update
}

build() {
  cd "${srcdir}/src/qpm.io"
  git_sha1=$(git rev-parse HEAD | cut -c1-8)

  cd "${srcdir}"
  export GOPATH="${srcdir}"
  go build -ldflags "-X qpm.io/qpm/core.Version=${pkgver} -X qpm.io/qpm/core.Build=${git_sha1}" qpm.io/qpm
}

package() {
  install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
}

vith commented on 2016-04-24 08:31

build fails https://gist.github.com/vith/778584ed78c82988c90745f6858e9aaf