Package Details: riofs-git 0.6.r86.g40e5396-1

Git Clone URL: https://aur.archlinux.org/riofs-git.git (read-only, click to copy)
Package Base: riofs-git
Description: FUSE userspace filesystem for Amazon AWS S3 buckets
Upstream URL: https://github.com/skoobe/riofs
Licenses: GPL3
Conflicts: riofs
Provides: riofs
Submitter: cataphract
Maintainer: severach (madetofade)
Last Packager: severach
Votes: 0
Popularity: 0.000000
First Submitted: 2014-04-16 16:49 (UTC)
Last Updated: 2018-11-29 22:19 (UTC)

Required by (0)

Sources (1)

Latest Comments

severach commented on 2018-11-29 22:20 (UTC)

Autogen follows configure so it can't stay in prepare. configure in build breaks makepkg -ef so I had been moving it to prepare only to find configure in prepare breaks makepkg -sCo. So now I'm moving it back with a trick that allows makepkg -ef to work properly. _verwatch is for git-aurcheck so I know when new versions are released without waiting for user reports. It's deliberately made small so noone notices.

dreieck commented on 2018-11-29 19:06 (UTC)

Here (and pasted below) a revorked PKGBUILD I use: http://ix.io/1uQP

I also removed that spam at the end of package().

What is the _verwatch-variable for? It is set but not used in the PKGBUILD.

# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com
# Contributor: Gustavo Lopes <mail@geleia.net>

set -u
_pkgname='riofs'
pkgname="${_pkgname}-git"
_srcdir="${pkgname}"
pkgver=0.6.r86.g40e5396
pkgrel=1
pkgdesc='FUSE userspace filesystem for Amazon AWS S3 buckets'
arch=('i686' 'x86_64')
url="https://github.com/skoobe/${_pkgname}"
license=('GPL3')
depends=('file' 'fuse' 'glib2' 'libevent' 'libxml2' 'openssl')
makedepends=('pkg-config' 'git')
_verwatch=("${url}/releases" "${url#*github.com}/archive/v\(.*\)\.tar\.gz" 'l')
source=("${_srcdir}::git+${url}.git") # #commit=${pkgver##*.g}
sha256sums=('SKIP')
conflicts=("${_pkgname}")
provides=("${_pkgname}=${pkgver%.r*}")

pkgver() {
  set -u
  cd "${_srcdir}"
  git describe --long --tags | sed -e 's/^v//g' -e 's/\([^-]*-g\)/r\1/' -e 's/-/./g'
  set +u
}

prepare() {
  set -u
  cd "${_srcdir}"
  ./autogen.sh
  set +u
}

build() {
  set -u
  cd "${_srcdir}"
  ./configure --prefix='/usr' --includedir='/usr/include/riofs' --with-libevent --with-libmagic
  make -s -j $(nproc)
  set +u
}

package() {
  set -u
  cd "${_srcdir}"
  make -s DESTDIR="${pkgdir}" install
  set +u
}
set +u

# vim:set ts=2 sw=2 et:

dreieck commented on 2018-11-29 19:01 (UTC)

Also depends on file (/usr/lib/libmagic.so.1)

dreieck commented on 2018-11-29 18:58 (UTC)

./configure should not run in prepare(). Please move it to build().

dreieck commented on 2018-11-29 18:52 (UTC)

PKGBUILD needs rework:

==> Building and installing package
==> ERROR: conflicts should be an array
==> ERROR: provides should be an array
==> ERROR: Makepkg was unable to build riofs-git.