summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Felipe Pizarro Naranjo2017-03-21 10:25:25 -0300
committerDavid Felipe Pizarro Naranjo2017-03-21 10:25:25 -0300
commit9d12d0ec9055a8c94abf1435fc5392131074bb3e (patch)
treef7a6e9aa0a3705ff9ff531c10fb009c87afdd8dd
parenta963c14d8bb1bc2effa921850c9a2fd913d45654 (diff)
downloadaur-9d12d0ec9055a8c94abf1435fc5392131074bb3e.tar.gz
Replaced with Manjaro's pm-utils
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD68
2 files changed, 45 insertions, 41 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 91081a6ef42..0962a430dbd 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,28 +1,30 @@
pkgbase = pm-utils
pkgdesc = Utilities and scripts for suspend and hibernate power management
pkgver = 1.4.1
- pkgrel = 1
- url = https://pm-utils.freedesktop.org
- arch = any
+ pkgrel = 7
+ url = http://pm-utils.freedesktop.org
+ arch = i686
+ arch = x86_64
license = GPL
+ makedepends = xmlto
makedepends = docbook-xml
makedepends = docbook-xsl
- makedepends = xmlto
depends = bash
- depends = pm-quirks
depends = procps
- source = pm-utils-1.4.1::https://pm-utils.freedesktop.org/releases/pm-utils-1.4.1.tar.gz
+ conflicts = pm-quirks
+ replaces = pm-quirks
+ source = http://pm-utils.freedesktop.org/releases/pm-utils-1.4.1.tar.gz
source = 02-logging-append.patch
source = 12-fix-intel-audio-powersave-hook.patch
source = 13-49bluetooth-sync.patch
source = 14-disable-sata-alpm.patch
- source = 11netcfg
+ source = http://pm-utils.freedesktop.org/releases/pm-quirks-20100619.tar.gz
sha256sums = 8ed899032866d88b2933a1d34cc75e8ae42dcde20e1cc21836baaae3d4370c0b
sha256sums = 5622a42167a5f6b725ecbe473d8f0994c4b3ac32e5c6607ce1fab0888894f139
sha256sums = 16d5355d1c5cff6316fef11768673434394582c67039c79e8b86aafe2d2f7797
sha256sums = 2af763812d609f384c818635028791c875e3e56a1fa387e80b7f1ca5afc3c4e3
sha256sums = c995912f25fd1f0c30c90136c36ac49e2d3a5fdb94ef1710a7e0426dd10dad8a
- sha256sums = bbb646d8a657ef18962bfc956eba54ea59b77cc623841d31cd683bc7220d7074
+ sha256sums = 14a50518928c27417cdc8bcbabb32b3d986931de105149aa248d8883e56c61ec
pkgname = pm-utils
diff --git a/PKGBUILD b/PKGBUILD
index 4c7e834ecd3..62686ee5641 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,60 +1,62 @@
-# Maintainer: David P. <megver83@openmailbox.org>
+# Maintainer: artoo <artoo@manjaro.org>
+# Contributor: Jan de Groot <jgc@archlinux.org>
+# Contributor: Thayer Williams <thayer@archlinux.org>
+# Contributor: Giovanni Scafora <giovanni@archlinux.org>
+
+_date=20100619
+_extra=pm-quirks
pkgname=pm-utils
pkgver=1.4.1
-pkgrel=1
+pkgrel=7
pkgdesc="Utilities and scripts for suspend and hibernate power management"
-arch=('any')
-url="https://pm-utils.freedesktop.org"
+arch=('i686' 'x86_64')
+url="http://pm-utils.freedesktop.org"
license=('GPL')
-depends=('bash' 'pm-quirks' 'procps')
-makedepends=('docbook-xml' 'docbook-xsl' 'xmlto')
-source=("${pkgname}-${pkgver}::https://pm-utils.freedesktop.org/releases/${pkgname}-${pkgver}.tar.gz"
- 02-logging-append.patch
- 12-fix-intel-audio-powersave-hook.patch
- 13-49bluetooth-sync.patch
- 14-disable-sata-alpm.patch
- 11netcfg)
+depends=('bash' 'procps')
+conflicts=('pm-quirks')
+replaces=('pm-quirks')
+makedepends=('xmlto' 'docbook-xml' 'docbook-xsl')
+source=("http://pm-utils.freedesktop.org/releases/${pkgname}-${pkgver}.tar.gz"
+ '02-logging-append.patch'
+ '12-fix-intel-audio-powersave-hook.patch'
+ '13-49bluetooth-sync.patch'
+ '14-disable-sata-alpm.patch'
+ "http://pm-utils.freedesktop.org/releases/${_extra}-${_date}.tar.gz")
sha256sums=('8ed899032866d88b2933a1d34cc75e8ae42dcde20e1cc21836baaae3d4370c0b'
'5622a42167a5f6b725ecbe473d8f0994c4b3ac32e5c6607ce1fab0888894f139'
'16d5355d1c5cff6316fef11768673434394582c67039c79e8b86aafe2d2f7797'
'2af763812d609f384c818635028791c875e3e56a1fa387e80b7f1ca5afc3c4e3'
'c995912f25fd1f0c30c90136c36ac49e2d3a5fdb94ef1710a7e0426dd10dad8a'
- 'bbb646d8a657ef18962bfc956eba54ea59b77cc623841d31cd683bc7220d7074')
-
-prepare() {
- cd "${pkgname}-${pkgver}"
-
- # patches
- for patch in ../*.patch; do
- msg "Applying ${patch} ..."
- patch -Np1 -i $patch
- done
+ '14a50518928c27417cdc8bcbabb32b3d986931de105149aa248d8883e56c61ec')
+
+prepare(){
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ patch -Np1 -i "${srcdir}/02-logging-append.patch"
+ patch -Np1 -i "${srcdir}/12-fix-intel-audio-powersave-hook.patch"
+ patch -Np1 -i "${srcdir}/13-49bluetooth-sync.patch"
+ patch -Np1 -i "${srcdir}/14-disable-sata-alpm.patch"
}
build() {
- cd "${pkgname}-${pkgver}"
-
- ./configure \
- --prefix=/usr \
- --sbindir=/usr/bin \
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure --prefix=/usr \
--sysconfdir=/etc \
+ --sbindir=/usr/bin \
--localstatedir=/var
-
make
}
package() {
- cd "${pkgname}-${pkgver}"
-
+ cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
- # install additional hooks
- install -m755 "${srcdir}/11netcfg" "${pkgdir}/usr/lib/pm-utils/sleep.d/"
-
# nm >=0.8.2 has native udev suspend/resume support
rm -f "${pkgdir}/usr/lib/pm-utils/sleep.d/55NetworkManager"
# Remove hooks that cause hardware failure or don't make sense at all
rm -f "${pkgdir}/usr/lib/pm-utils/power.d/"{harddrive,disable_wol}
+
+ install -m755 -d "${pkgdir}/usr/lib/pm-utils/video-quirks"
+ install -m644 ${srcdir}/video-quirks/*.quirkdb "${pkgdir}/usr/lib/pm-utils/video-quirks/"
}