summaryrefslogtreecommitdiff
path: root/libre/parabola-archiso-git/PKGBUILD
blob: 0b07ddf8dec27d742b6498672b64db3a72fe2d85 (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
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Maintainer (Parabola): André Silva <andre.paulista@adinet.com.uy>
pkgname=parabola-archiso-git
pkgver=20120506
pkgrel=1
pkgdesc="Parabola GNU/Linux-libre livecd/liveusb generation scripts"
arch=('any')
url="https://parabolagnulinux.org"
license=('GPL')
depends=('libisoburn' 'squashfs-tools' 'rsync')
optdepends=('qemu: quickly test isos')
makedepends=('git')
provides=('archiso')
conflicts=('archiso')
source=()
md5sums=()

_gitroot=git://parabolagnulinux.org/archiso.git
_gitname=archiso

build() {
  cd ${srcdir}
  msg "Connecting to projects.parabolagnulinux.org GIT server..."

  if [ -d ${srcdir}/$_gitname ]; then
    cd $_gitname && git pull origin
    msg "The local files are updated."
  else
    git clone $_gitroot
  fi

  msg "GIT checkout done or server timeout"
  msg "Starting make..."
 
  if [ -d ${srcdir}/$_gitname-build ]; then
    rm -rf ${srcdir}/$_gitname-build
  fi

  git clone ${srcdir}/$_gitname ${srcdir}/$_gitname-build || return 1
  cd ${srcdir}/$_gitname-build/$_gitname || return 1

  make DESTDIR="$pkgdir" install
}

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