summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b07eae53b1e7611753a7ace2a2f8402233085a44 (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: Bet4 <0xbet4@gmail.com>

_pkgname=supermin
pkgname=${_pkgname}-git
pkgver=5.2.0.r12.g4c019ae
pkgrel=1
pkgdesc="Tool for creating supermin appliances"
arch=('x86_64')
url="http://people.redhat.com/~rjones/supermin/"
license=('GPL')
makedepends=('ocaml' 'ocaml-findlib')
depends=('e2fsprogs' 'pacman' 'pacman-contrib' 'cpio')
provides=(${_pkgname})
conflicts=('febootstrap<=3.21' ${_pkgname})
source=("$pkgname::git+https://github.com/libguestfs/supermin.git")
sha512sums=('SKIP')

pkgver() {
  cd "${pkgname}"

  git describe --tags --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd "${pkgname}"

  ./autogen.sh
}

build() {
  cd "${pkgname}"

  ./configure --prefix=/usr

  make
}

package() {
  cd "${pkgname}"

  make DESTDIR="${pkgdir}/" install
}