summaryrefslogtreecommitdiff
path: root/libre/libretools-legacy/PKGBUILD
blob: 59e383449f626c44d580f82f644b279ac9109b8e (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
91
92
93
94
95
96
97
98
99
100
# Maintainer: Márcio Silva <coadde@lavabit.com>
# Maintainer: Joshua Haase <hahj87@gmail.com
# Contributor: fauno <fauno@kiwwwi.com.ar>

pkgbase=libretools
pkgname=(libretools-legacy libretools-legacy-pr libretools-legacy-mips64el)
pkgver=20120924
pkgrel=1
pkgdesc="Programs for Parabola development (legacy)"
arch=('any')
url="http://parabolagnulinux.org"
license=('GPL3+')
depends=(openssh rsync git wget devtools-legacy)
install=libretools-legacy.install
source=(https://projects.parabolagnulinux.org/$pkgbase.git/snapshot/$pkgbase-v$pkgver.tar)
md5sums=(dfb8cb24d3deda29178d0fdc20b0e4bd)
conflicts=libretools

package_libretools-legacy() {
  backup=(etc/libretools.conf)

  cd $srcdir/$pkgbase-v$pkgver

  # fixing librebasebuilder librechroot libremakepkg !!!NEED MORE PATCH for makechrootpkg -d and mkarchroot -n!!!
  # more info in:
  # https://projects.archlinux.org/devtools.git/commit/?id=abba9f07a6d703cd97fc2d2bbd397072d5bf796d
  # https://projects.archlinux.org/devtools.git/commit/?id=453558c4bb44b4bff43fcd22f96d4cfe1dbcf6f1
  #sed -i 's|makechrootpkg -d -r "$CHROOTDIR" -l "$CHROOT" -- $MAKEPKG_ARGS|makechrootpkg -r "$CHROOTDIR" -l "$CHROOT" -- $MAKEPKG_ARGS|;
  #        s|mkarchroot -n|mkarchroot|;
  #        s|mkarchroot -r "/clean" "${CHROOTDIR}/${CHROOTNAME}"|arch-nspawn "${CHROOTDIR}/${CHROOTNAME}" "/clean"|;
  #        s|mkarchroot -r "bash" "${CHROOTDIR}/${CHROOTNAME}"|arch-nspawn "${CHROOTDIR}/${CHROOTNAME}" "bash"|;
  #        s|mkarchroot -u "${CHROOTDIR}/${CHROOTNAME}"|arch-nspawn "${CHROOTDIR}/${CHROOTNAME}" pacman -Syu --noconfirm|;
  #       ' librebasebuilder librechroot libremakepkg

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

  install -d ${pkgdir}/usr/bin
  install -m755 abslibre-commit        ${pkgdir}/usr/bin
  install -m755 add-mips64el           ${pkgdir}/usr/bin
  install -m755 aur                    ${pkgdir}/usr/bin
  install -m755 buildenv               ${pkgdir}/usr/bin
  install -m755 chcleanup              ${pkgdir}/usr/bin
  install -m755 createworkdir          ${pkgdir}/usr/bin
  install -m755 diff-unfree            ${pkgdir}/usr/bin
  install -m755 fullpkg                ${pkgdir}/usr/bin
  install -m755 fullpkg-build          ${pkgdir}/usr/bin
  install -m755 fullpkg-find           ${pkgdir}/usr/bin
  install -m755 is_built               ${pkgdir}/usr/bin
  install -m755 is_unfree              ${pkgdir}/usr/bin
  install -m755 lb                     ${pkgdir}/usr/bin
  install -m755 libreaddiff            ${pkgdir}/usr/bin
  install -m755 librebasebuilder       ${pkgdir}/usr/bin
  install -m755 librechroot            ${pkgdir}/usr/bin
  install -m755 librecommit            ${pkgdir}/usr/bin
  install -m755 librediff              ${pkgdir}/usr/bin
  install -m755 libremakepkg           ${pkgdir}/usr/bin
  install -m755 libremessages          ${pkgdir}/usr/bin
  install -m755 libremkchroot          ${pkgdir}/usr/bin
  install -m755 librerelease           ${pkgdir}/usr/bin
  install -m755 librerepkg             ${pkgdir}/usr/bin
  install -m755 librestage             ${pkgdir}/usr/bin
  install -m755 pkgbuild-check-nonfree ${pkgdir}/usr/bin
  install -m755 toru                   ${pkgdir}/usr/bin
  install -m755 toru-path              ${pkgdir}/usr/bin
  install -m755 toru-utils             ${pkgdir}/usr/bin
  install -m755 toru-where             ${pkgdir}/usr/bin
  install -m755 updateabslibre         ${pkgdir}/usr/bin
  install -m755 update-cleansystem     ${pkgdir}/usr/bin
  
  install -d ${pkgdir}/usr/share/pacman
  install -m755 rePKGBUILD.proto ${pkgdir}/usr/share/pacman
}

package_libretools-legacy-pr() {
  backup=('etc/libretools.d/prtools.conf')

  cd $srcdir/$pkgbase-v$pkgver

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

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

package_libretools-legacy-mips64el() {
  backup=('etc/libretools.d/mips64el.conf')

  cd $srcdir/$pkgbase-v$pkgver

  install -d ${pkgdir}/etc/libretools.d
  install -m755 mips64el/mips64el.conf ${pkgdir}/etc/libretools.d

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