summaryrefslogtreecommitdiff
path: root/libre/thunderbird-libre/rePKGBUILD
blob: e71f6ad78d0acb0aefde7f5900538ee7f00e62e7 (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
# This is an example rePKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.

# Maintainer: Nicolas Reynolds <fauno@kiwwwi.com.ar>
source PKGBUILD
CARCH=x86_64
unset build package md5sums source
_repo=extra
options=(!strip)
source=(PKGBUILD
	http://mirrors.kernel.org/archlinux/${_repo}/os/$CARCH/${pkgname%-libre}-$pkgver-$pkgrel-$CARCH$PKGEXT
	# files for pkg modifications
        gnuzilla-addons.patch)

build() {
  cd "${srcdir}/"
  rm -v .{INSTALL,PKGINFO} ${pkgname%-libre}-$pkgver-$pkgrel-$CARCH$PKGEXT

  pushd usr/lib/${pkgname%-libre}-3.1/defaults/pref/ >/dev/null
  patch -Np0 -i "${srcdir}/gnuzilla-addons.patch"
  popd >/dev/null
  rm "${srcdir}/gnuzilla-addons.patch"
}

package() {
  find ${srcdir} -type l -maxdepth 1 -delete
  cd ${srcdir}
  cp -a ./* ${pkgdir}
}