1 # Maintainer: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
3 pkgname=inputproto-ubuntu
5 pkgver=2.0.2.${_ubuntu_ver}
7 pkgdesc="X11 Input extension wire protocol"
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')
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}"
30 ./configure --prefix=/usr
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%-*}/"