diff options
author | LingMan | 2021-03-21 11:08:15 +0100 |
---|---|---|
committer | LingMan | 2021-03-21 11:17:01 +0100 |
commit | ef4b0ec2f8ab520c4566bfd74d700afc6e846812 (patch) | |
tree | 4d9b71229fd10919211a1f71c125ea22be75e01b | |
download | aur-ef4b0ec2f8ab520c4566bfd74d700afc6e846812.tar.gz |
AUR submission after python2 support was dropped from extra in
https://github.com/archlinux/svntogit-packages/commit/6fccd0bc5d051b6e1afdb4ecbd457e317b59cda9
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 35 |
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a05b631d7aba --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = python2-dbus + pkgdesc = Python2 bindings for DBUS + pkgver = 1.2.16 + pkgrel = 4 + url = https://www.freedesktop.org/wiki/Software/DBusBindings + arch = x86_64 + license = GPL + license = LGPL + makedepends = autoconf-archive + depends = dbus + depends = glib2 + depends = python2 + depends = python-dbus-common<1.3 + depends = python-dbus-common>=1.2 + source = https://dbus.freedesktop.org/releases/dbus-python/dbus-python-1.2.16.tar.gz + sha256sums = 11238f1d86c995d8aed2e22f04a1e3779f0d70e587caffeab4857f3c662ed5a4 + +pkgname = python2-dbus + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8f1b060ab85c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ + +pkgname=python2-dbus +_pkgname=dbus-python +pkgver=1.2.16 +pkgrel=4 +pkgdesc="Python2 bindings for DBUS" +url="https://www.freedesktop.org/wiki/Software/DBusBindings" +arch=(x86_64) +license=('GPL' 'LGPL') +depends=('dbus' 'glib2' 'python2' 'python-dbus-common<1.3' 'python-dbus-common>=1.2') +makedepends=('autoconf-archive') +source=(https://dbus.freedesktop.org/releases/${_pkgname}/${_pkgname}-${pkgver}.tar.gz) +sha256sums=('11238f1d86c995d8aed2e22f04a1e3779f0d70e587caffeab4857f3c662ed5a4') + +prepare() { + cd $_pkgname-$pkgver + autoreconf -vfi +} + +build() { + cd $_pkgname-$pkgver + + ./configure --prefix=/usr PYTHON_VERSION=2 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + make +} + +package() { + cd $_pkgname-$pkgver + make DESTDIR="${pkgdir}" install + + rm -rf "${pkgdir}/usr/share" + rm -r "${pkgdir}/usr/include" + rm -r "${pkgdir}/usr/lib/pkgconfig" +} |