summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 85fde0b58d64690c6b36b2ec07e5f61c622420d2 (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
# Maintainer:  Michael DeGuzis <mdeguzis@gmail.com>
# Contributor: Andre Klitzing <andre AT incubo DOT de>
# Contributor: max-k <max-k AT post DOT com>

pkgname=reprepro-git
pkgver=5.1.1.1.r1.gaf6b285
pkgrel=1
pkgdesc="A tool to handle local repositories of Debian packages (Git latest)"
arch=('i686' 'x86_64')
url="http://mirrorer.alioth.debian.org"
license=('GPL')
depends=('db' 'gpgme' 'git' 'zlib' 'bzip2' 'libarchive')
optdepends=('apt: Importing from other sources')
conflicts=('reprepro')
provides=('reprepro')
source=('reprepro-git::git+git://git.debian.org/mirrorer/reprepro.git')
sha256sums=('SKIP')

pkgver() {

  cd "$pkgname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/reprepro.debian.//'

}

build() {

  cd "$srcdir/$pkgname"
  ./configure --prefix=/usr
  make

}

package() {

  cd "$srcdir/$pkgname"
  make DESTDIR="$pkgdir" install

}