summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorproninyaroslav2016-03-21 15:02:36 +0300
committerproninyaroslav2016-03-21 15:02:36 +0300
commit7e28be489f5e8827c14759649df2362f5cf53ad9 (patch)
tree8585dcf8c5bf22f82b713e348c8266fb972b2b4e /PKGBUILD
parentf7f74439e9cc98ee045651d32d0d31f2796cadbd (diff)
downloadaur-libudev0.tar.gz
Fix build failure
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD18
1 files changed, 12 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index f565314b57f..651c0ac1739 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,20 +1,27 @@
# Maintainer: yaroslav <proninyaroslav@mail.ru>
+# Contributor: WorMzy Tykashi <wormzy.tykashi@gmail.com>
# Contributor: jdarch <jda -dot- cloud -plus- archlinux -at- gmail -dot- com>
pkgname=('libudev0')
pkgver=182
-pkgrel=2
+pkgrel=3
pkgdesc="Dynamic library to access udev device information, legacy libudev.so.0."
url="https://www.kernel.org/pub/linux/utils/kernel/hotplug/udev/udev.html"
arch=('x86_64' 'i686')
license=('GPL')
-makedepends=('gperf')
+depends=('glibc')
+makedepends=('kmod' 'usbutils' 'gperf')
source=("https://www.kernel.org/pub/linux/utils/kernel/hotplug/udev-182.tar.xz")
sha256sums=('adb8892f3b8e4b7163703ed4a545774721a3d55a1062de001f08c477c03d97ab')
prepare() {
- cd "${srcdir}/udev-${pkgver}"
- autoreconf -vfi
+ cd "${srcdir}/udev-${pkgver}"
+ autoreconf -vfi
+
+ # Event codes have been moved out of input.h
+ sed -i 's:input.h:input-event-codes.h:' Makefile.in
+ # stdin.h is needed for uint32_t and uint8_t typedefs
+ sed -i '20a#include <stdint.h>' src/mtd_probe/mtd_probe.h
}
build() {
@@ -33,6 +40,5 @@ build() {
package() {
cd "${srcdir}/udev-${pkgver}"
install -Dm755 .libs/libudev.so.0.13.1 "${pkgdir}/usr/lib/libudev.so.0.13.1"
- install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
ln -s "/usr/lib/libudev.so.0.13.1" "${pkgdir}/usr/lib/libudev.so.0"
-} \ No newline at end of file
+}