summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f0c9b79ae90fdbea8344f927533553bd44fb4956 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Maintainer: Reik Keutterling <spielkind@gmail.com>
# Contributor: Bryan Ischo <bryan@ischo.com>
pkgname=libs3-git
_gitname=libs3
pkgver=267.537bb7b
pkgrel=2
pkgdesc="C Library and Tools for Amazon S3 Access"
arch=('i686' 'x86_64')
url="https://github.com/bji/libs3"
license=('GPL')
groups=()
depends=('libxml2' 'openssl' 'curl')
makedepends=('make' 'libxml2' 'openssl' 'curl')
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=("git://github.com/bji/${_gitname}.git#commit=537bb7b59bbf3d9eb322eb807d329bb701075a88"
        'added_s3_versioning_support.patch')
noextract=()
sha256sums=('SKIP'
            '0549154da30ef026b334a83cb69e168f7bb243a17569f54bbc57f0840d76f8c2')



prepare() {
 cd "$_gitname"
 # https://github.com/bji/libs3/pull/70
 patch -Np1 -i "${srcdir}/added_s3_versioning_support.patch"
}

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

package() {
  cd "$_gitname"
  CFLAGS="-Wno-stringop-overflow -Wno-format-truncation" DESTDIR=$pkgdir/usr make install || return 1
}