summaryrefslogtreecommitdiff
path: root/libre/libretools/PKGBUILD
blob: fd3ea4063b2fa32ae1e6bbd8f92435842a6080e0 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Maintainer: Joshua Haase <hahj87@gmail.com
# Contributor: fauno <fauno@kiwwwi.com.ar>

pkgbase=libretools
pkgname=(libretools libretools-pr libretools-mips64el)
pkgver=$(date -u +%Y%m%d)
pkgrel=1
pkgdesc="Scripts for easing Parabola's tasks"
arch=('any')
url="http://parabolagnulinux.org"
license=('GPL3+')
depends=(openssh rsync git wget)
optdepends=(devtools)
makedepends=(git)
backup=(etc/libretools.conf)
install=libretools.install
source=()
md5sums=()

_gitroot="http://projects.parabolagnulinux.org/libretools.git"
_gitname="libretools"

build() {
  cd "$srcdir"
 ## Git checkout
  if [ -d $srcdir/${_gitname} ] ; then
    msg "Git checkout:  Updating existing tree"
    cd ${_gitname} && git pull ${_gitroot}
    msg "Git checkout:  Tree has been updated"
  else
    msg "Git checkout:  Retrieving sources"
    git clone ${_gitroot}  
  fi
  msg "Checkout completed"
 ## Build
}

package_libretools() {

  install -d ${pkgdir}/etc
  install -m644 ${_gitname}/libretools.conf ${pkgdir}/etc/

  install -d ${pkgdir}/etc/libretools.d
  install -m644 ${_gitname}/cleansystem ${pkgdir}/etc/libretools.d

  install -d ${pkgdir}/usr/bin
  install -m755 ${_gitname}/abslibre-commit ${pkgdir}/usr/bin
  install -m755 ${_gitname}/add-mips64el ${pkgdir}/usr/bin
  install -m755 ${_gitname}/aur ${pkgdir}/usr/bin
  install -m755 ${_gitname}/createworkdir ${pkgdir}/usr/bin/
  install -m755 ${_gitname}/diff-unfree ${pkgdir}/usr/bin
  install -m755 ${_gitname}/fullpkg ${pkgdir}/usr/bin
  install -m755 ${_gitname}/is_built ${pkgdir}/usr/bin
  install -m755 ${_gitname}/lb ${pkgdir}/usr/bin
  install -m755 ${_gitname}/librechroot ${pkgdir}/usr/bin/
  install -m755 ${_gitname}/librecommit ${pkgdir}/usr/bin/
  install -m755 ${_gitname}/librediff ${pkgdir}/usr/bin/
  install -m755 ${_gitname}/libremessages ${pkgdir}/usr/bin/
  install -m755 ${_gitname}/librerelease ${pkgdir}/usr/bin/
  install -m755 ${_gitname}/librerepkg ${pkgdir}/usr/bin
  install -m755 ${_gitname}/librestage ${pkgdir}/usr/bin/
  install -m755 ${_gitname}/mipsrelease ${pkgdir}/usr/bin
  install -m755 ${_gitname}/pkgbuild-check-nonfree ${pkgdir}/usr/bin/
  install -m755 ${_gitname}/toru ${pkgdir}/usr/bin
  install -m755 ${_gitname}/updateabslibre ${pkgdir}/usr/bin

  install -d ${pkgdir}/usr/sbin
  install -m755 ${_gitname}/libremakepkg ${pkgdir}/usr/sbin/
  
  install -d ${pkgdir}/usr/share/pacman
  install -m755 ${_gitname}/rePKGBUILD.proto ${pkgdir}/usr/share/pacman
}

package_libretools-pr() {
  install -d ${pkgdir}/etc/libretools.d
  install -m644 ${_gitname}/prtools.conf ${pkgdir}/etc/libretools.d

  install -d ${pkgdir}/usr/bin
  install -m755 ${_gitname}/prfullpkg ${pkgdir}/usr/bin
  install -m755 ${_gitname}/prmipsrelease ${pkgdir}/usr/bin
}

package_libretools-mips64el() {
  install -d ${pkgdir}/etc/libretools.d
  install -m755 ${_gitname}/mips64el/mips64el.conf ${pkgdir}/etc/libretools.d

  install -d ${pkgdir}/usr/bin
  install -m755 ${_gitname}/mips64el/mips-add ${pkgdir}/usr/bin
  install -m755 ${_gitname}/mips64el/mipsrelease ${pkgdir}/usr/bin
}