summaryrefslogtreecommitdiff
path: root/libre/pacman/rePKGBUILD
blob: 3648f2a189b8c50c6eb8aa95d31790c434267056 (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
# Maintainer: Nicolas Reynolds <fauno@kiwwwi.com.ar>
source PKGBUILD
CARCH=x86_64
unset build package md5sums source
_repo=testing
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 .{INSTALL,PKGINFO} ${pkgname%-libre}-$pkgver-$pkgrel-$CARCH$PKGEXT
  # put actions for package modifications below this line

}

package() {
  cd ${srcdir}
  cp -a ./* ${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: