mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-24 01:42:15 +08:00
41 lines
1.1 KiB
Bash
41 lines
1.1 KiB
Bash
# Lib32 Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
|
|
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
|
|
_pkgbasename=libxtst
|
|
pkgname=lib32-$_pkgbasename
|
|
pkgver=1.2.0
|
|
pkgrel=2
|
|
pkgdesc="X11 Testing -- Resource extension library (32-bit)"
|
|
arch=(x86_64)
|
|
url="http://xorg.freedesktop.org/"
|
|
license=('custom')
|
|
depends=('lib32-libxext' 'lib32-libxi' 'recordproto' 'inputproto' $_pkgbasename=$pkgver)
|
|
makedepends=('gcc-multilib' 'xorg-util-macros')
|
|
options=('!libtool')
|
|
source=(${url}/releases/individual/lib/libXtst-${pkgver}.tar.bz2)
|
|
sha1sums=('9fb06ed599caf7f9e7115cbbfadf02b47c17aa72')
|
|
|
|
build() {
|
|
cd "${srcdir}/libXtst-${pkgver}"
|
|
|
|
export CC="gcc -m32"
|
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
|
|
|
./configure --prefix=/usr --disable-static \
|
|
--libdir=/usr/lib32
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/libXtst-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
rm -rf "${pkgdir}"/usr/{include,share}
|
|
|
|
mkdir -p "$pkgdir/usr/share/licenses"
|
|
ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
|
|
}
|