mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-19 16:15:39 +08:00
47 lines
937 B
Bash
47 lines
937 B
Bash
# Maintainer: Weng Xuetian <wengxt@gmail.com>
|
|
# Contributor: Evangelos Foutras <evangelos@foutrelis.com>
|
|
|
|
pkgname=libgudev
|
|
pkgver=232
|
|
pkgrel=1
|
|
pkgdesc="GObject bindings for libudev"
|
|
url="https://wiki.gnome.org/Projects/libgudev"
|
|
arch=(x86_64)
|
|
license=(LGPL2.1)
|
|
depends=(libsystemd glib2)
|
|
makedepends=(systemd gobject-introspection gtk-doc git gnome-common)
|
|
provides=(libgudev-1.0.so)
|
|
_commit=58eb745d8c4fb06b35706c2c997313235dccb1fc # tags/232^0
|
|
source=("git+https://git.gnome.org/browse/libgudev#commit=$_commit")
|
|
sha256sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd $pkgname
|
|
git describe --tags | sed 's/-/+/g'
|
|
}
|
|
|
|
prepare() {
|
|
cd $pkgname
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
}
|
|
|
|
check() {
|
|
cd $pkgname
|
|
make check
|
|
}
|
|
|
|
build() {
|
|
cd $pkgname
|
|
./configure \
|
|
--prefix=/usr \
|
|
--enable-gtk-doc \
|
|
--disable-umockdev
|
|
sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' -i libtool
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname
|
|
make DESTDIR="$pkgdir" install
|
|
}
|