<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libusb</Name>
        <Homepage>http://libusb.org/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        <Summary>Userspace access to USB devices</Summary>
        <Description>Project's main aim is to create a library for use by user level applications to access USB devices regardless of OS.</Description>
        <Archive sha1sum="54d71841542eb1a6f0b0420878a4d5434efe8d28" type="tarbz2">https://sourceforge.net/projects/libusb/files/libusb-1.0/libusb-1.0.21/libusb-1.0.21.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>eudev-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>libusb</Name>
        <Replaces>
            <Package>libusbx</Package>
        </Replaces>
        <Conflicts>
            <Package>libusbx</Package>
        </Conflicts>
        <RuntimeDependencies>
            <Dependency>eudev</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>libusb-devel</Name>
        <Replaces>
            <Package>libusbx-devel</Package>
        </Replaces>
        <Conflicts>
            <Package>libusbx-devel</Package>
        </Conflicts>
        <PartOf>system.devel</PartOf>
        <Summary>Development files for libusb</Summary>
        <RuntimeDependencies>
            <Dependency release="current">libusb</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
            <Path fileType="data">/usr/lib32/pkgconfig</Path>
        </Files>
    </Package>

    <Package>
        <Name>libusb-32bit</Name>
        <Replaces>
            <Package>libusbx-32bit</Package>
        </Replaces>
        <Conflicts>
            <Package>libusbx-32bit</Package>
        </Conflicts>
        <PartOf>emul32</PartOf>
        <Summary>32-bit shared libraries for libusb</Summary>
        <BuildType>emul32</BuildType>
        <BuildDependencies>
            
            <Dependency>eudev-32bit</Dependency>
        </BuildDependencies>
        <RuntimeDependencies>
            <Dependency release="current">libusb</Dependency>
	    <Dependency>eudev-32bit</Dependency>
            
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib32</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-01-30</Date>
            <Version>1.0.21</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2016-04-27</Date>
            <Version>1.0.20</Version>
            <Comment>Release Bump</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-03-08</Date>
            <Version>1.0.20</Version>
            <Comment>First release</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>
