updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / inputproto-ubuntu / PKGBUILD
blobfec7b5c7dc5ff046bc0dce00e425885c6589a6c4
1 # Maintainer: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
3 pkgname=inputproto-ubuntu
4 _ubuntu_ver=2ubuntu1
5 pkgver=2.0.2.${_ubuntu_ver}
6 pkgrel=100
7 pkgdesc="X11 Input extension wire protocol"
8 arch=('any')
9 license=('custom')
10 url="http://xorg.freedesktop.org/"
11 makedepends=('xorg-util-macros')
12 provides=("inputproto=${pkgver}")
13 conflicts=('inputproto')
14 source=("${url}/releases/individual/proto/${pkgname%-*}-${pkgver%.*}.tar.bz2"
15         "http://archive.ubuntu.com/ubuntu/pool/main/x/x11proto-input/x11proto-input_${pkgver%.*}-${_ubuntu_ver}.diff.gz")
16 sha512sums=('33ac36e447d58dec7e604d4a7f3d4f86734104ee9d8001dece3808edac5a7e6bd7f18c0c70ad2263051a7bc88d9e9f12db944775e42ae43f3cb021cd234a8c1f'
17             'fdec5a6c21ec8b04f93c8ebeeb99929d5d7b2b5fbf4b2991b08e214ad8774fbc28e3688cf3dafd4bda8726c1c74c6ec4e571e526376568def8fa4fd3c6619006')
19 build() {
20   cd "${srcdir}/${pkgname%-*}-${pkgver%.*}"
22   # Apply ubuntu patches
23   patch -Np1 -i "${srcdir}/x11proto-input_${pkgver%.*}-${_ubuntu_ver}.diff"
24   for i in $(cat debian/patches/series | grep -v '#'); do
25     patch -Np1 -i "debian/patches/${i}"
26   done
28   autoreconf
30   ./configure --prefix=/usr
31   make
34 package() {
35   cd "${srcdir}/${pkgname%-*}-${pkgver%.*}"
36   make DESTDIR="${pkgdir}" install
38   install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname%-*}"
39   install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname%-*}/"