summaryrefslogtreecommitdiff
path: root/libre/python2-libre/SRCBUILD
blob: f021d6624e462fcdfcedda5582f0ac2db7e67839 (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
# $Id: PKGBUILD 123066 2011-05-07 23:01:49Z stephane $
# Maintainer: AndyRTR <andyrtr@archlinux.org>
# Maintainer (Parabola): xihh

pkgname=python2-libre
pkgver=2.7.2
pkgrel=4
pkgdesc="A high-level scripting language"
arch=('any')
license=('PSF')
url="http://www.python.org/"
source=(http://www.python.org/ftp/python/${pkgver%rc?}/Python-${pkgver}.tar.xz
        doc_license_change.patch
        WDAS.patch)
md5sums=('75c87a80c6ddb0b785a57ea3583e04fa'
         '1e6595f85a1da7f42b69456119924d50'
         '3f8c0e310a0be0bd8b319d6c46bbd427')
options=(!strip docs libtool emptydirs !zipman !purge)

build() {
  cd "${srcdir}/Python-${pkgver}"

  export PKGEXT=.src.tar.xz

  patch -Np1 -i ../WDAS.patch
  patch -Np0 -i ../doc_license_change.patch
  
}

package() {
  export PKGEXT=.src.tar.xz
  export PKGDEST=${startdir}

  mv "${srcdir}/Python-${pkgver}" ${pkgdir}

}