summaryrefslogtreecommitdiff
path: root/libre/pacman/rePKGBUILD
blob: 810eff5b9b91a30f21ed3ddb519e5a41dd2bc5fc (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
# Maintainer: Nicolas Reynolds <fauno@kiwwwi.com.ar>
source PKGBUILD
unset build package md5sums source check
_repo=core
source=(PKGBUILD
       ftp://ftp.archlinux.org/${_repo}/os/${CARCH}/${pkgname%-libre}-$pkgver-$pkgrel-$CARCH$PKGEXT
       # files for pkg modifications
  pacman.conf
  pacman.conf.x86_64
        )
options=(!strip)

build() {
  cd "${srcdir}/"
  rm -vf .{INSTALL,PKGINFO} ${srcdir}/${pkgname%-libre}-$pkgver-$pkgrel-$CARCH$PKGEXT
  # put actions for package modifications below this line

}

package() {
  cp -a ${srcdir}/* ${pkgdir}

  rm ${pkgdir}/{PKGBUILD,pacman.conf{,.x86_64}}

# No need to repackage for mips64el
  case "$CARCH" in
    i686)
      install -m644 $srcdir/pacman.conf $pkgdir/etc/pacman.conf
      ;;
    x86_64)
      install -m644 $srcdir/pacman.conf.x86_64 $pkgdir/etc/pacman.conf
      ;;
  esac
}


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