mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-24 18:12:15 +08:00
31 lines
869 B
Bash
31 lines
869 B
Bash
|
# Lib32 Packages for Chakra, part of chakra-project.org
|
||
|
#
|
||
|
# Maintainer: AlmAck <almack@chakra-project.org>
|
||
|
# Contributor: jtts
|
||
|
|
||
|
_pkgbasename=libgusb
|
||
|
pkgname=lib32-$_pkgbasename
|
||
|
pkgver=0.1.6
|
||
|
pkgrel=1
|
||
|
pkgdesc="GLib wrapper around libusb1 (32 bit)"
|
||
|
arch=(x86_64)
|
||
|
url="https://gitorious.org/gusb/"
|
||
|
license=(LGPL2.1)
|
||
|
depends=('lib32-systemd' 'lib32-libusb' $_pkgbasename=$pkgver)
|
||
|
makedepends=('gcc-multilib' 'gobject-introspection')
|
||
|
source=(http://people.freedesktop.org/~hughsient/releases/$_pkgbasename-$pkgver.tar.xz)
|
||
|
options=('!libtool')
|
||
|
sha256sums=('900103ff24a851ef8395b992236ced0aedb4c265ef2264f6ad8349300095198b')
|
||
|
|
||
|
build() {
|
||
|
export CC='gcc -m32'
|
||
|
cd $_pkgbasename-$pkgver
|
||
|
./configure --prefix=/usr --disable-static --libdir=/usr/lib32
|
||
|
make
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
make -C $_pkgbasename-$pkgver DESTDIR="${pkgdir}" install
|
||
|
rm -rf "${pkgdir}"/usr/{include,share}
|
||
|
}
|