updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / libxi-ubuntu / PKGBUILD
blob4a394119a90ce33b04fcdc6f1c5fe101ff3f276a
1 # Maintainer: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
3 pkgname=libxi-ubuntu
4 _ubuntu_ver=3ubuntu1
5 pkgver=1.4.3.${_ubuntu_ver}
6 pkgrel=101
7 pkgdesc="X11 Input extension library"
8 arch=('i686' 'x86_64')
9 url="http://xorg.freedesktop.org"
10 depends=('libxext' 'inputproto-ubuntu')
11 makedepends=('pkgconfig' 'xorg-util-macros')
12 provides=("libxi=${pkgver}")
13 conflicts=('libxi')
14 options=(!libtool)
15 license=('custom')
16 source=("${url}/releases/individual/lib/libXi-${pkgver%.*}.tar.bz2"
17         "http://archive.ubuntu.com/ubuntu/pool/main/libx/libxi/libxi_${pkgver%.*}-${_ubuntu_ver}.diff.gz")
18 sha512sums=('6ec8cedd7f6ad5ec6deb7ea594893615c87823537be20b6b1d67c8595364566ac4d22292e49640cb94e0ba2216c60859fcfb8f0650089015df9dc42b10a02b87'
19             'ef1ea2f8146ff9e5cc77d9ad2be5c8a1c858a6d7571221f2a698a26b6a2de44ace7636f9c1bad4e4e1cd1df0a81687312cbfcac2786b10a6df275bab4745e8fa')
21 build() {
22   cd "${srcdir}/libXi-${pkgver%.*}"
24   #Apply Ubuntu patches
25   patch -Np1 -i "${srcdir}/libxi_${pkgver%.*}-${_ubuntu_ver}.diff"
26   for i in $(cat "debian/patches/series" | grep -v '#'); do
27     patch -Np1 -i "debian/patches/${i}"
28   done
30   chmod +x autogen.sh
31   ./autogen.sh --prefix=/usr --sysconfdir=/etc --disable-static --with-xmlto --without-fop
32   make
35 package() {
36   cd "${srcdir}/libXi-${pkgver%.*}"
38   make DESTDIR="${pkgdir}" install
40   install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
41   install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"