summaryrefslogtreecommitdiff
path: root/libre/makepkg-git/PKGBUILD
blob: 60453a9277097c704a8454ed1d54288b5b91a1c7 (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
43
44
45
46
47
48
49
# vim: set ts=2 sw=2 et:
# $Id: PKGBUILD 150148 2012-02-13 14:49:35Z dreisner $
# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
# Maintainer (Arch): Dan McGee <dan@archlinux.org>
# Maintainer (Arch): Dave Reisner <dave@archlinux.org>

_pkgname=pacman
pkgname=makepkg-git
_relver=4.0.3
_gitver=2abe1f16461133c0dc386f8ecb8b06865c22940b
pkgver=${_relver}.git

provides=($_pkgname=$pkgver)
replaces=(pacman-makepkg-git)
conflicts=(pacman-makepkg-git)

pkgrel=2

pkgdesc="Pacman's makepkg, built from git sources"
#arch=('i686' 'x86_64' 'mips64el')
arch=('any')
url="http://www.archlinux.org/pacman/"
license=('GPL')
#groups=('base')
depends=('bash' 'libarchive>=3.0.2' 'curl>=7.19.4' 'gpgme')
makedepends=('asciidoc')
optdepends=('fakeroot: for makepkg usage as normal user')
#backup=(etc/pacman.conf etc/makepkg.conf)
#install=pacman.install
options=(!libtool)
source=(https://projects.archlinux.org/pacman.git/snapshot/$_pkgname-$_gitver.tar)
md5sums=('2152bdff59dcab8e7d36103a4756e5bf')

build() {
  cd $srcdir/$_pkgname-$_gitver

  ./autogen.sh
  ./configure --prefix=/usr --sysconfdir=/etc \
    --localstatedir=/var
  make
}

check() {
  make -C "$_pkgname-$_gitver" check
}

package() {
  install -Dm755 $srcdir/$_pkgname-$_gitver/scripts/makepkg $pkgdir/usr/bin/makepkg-git
}