summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Felipe Pizarro Naranjo2017-03-20 19:34:28 -0300
committerDavid Felipe Pizarro Naranjo2017-03-20 19:34:28 -0300
commita963c14d8bb1bc2effa921850c9a2fd913d45654 (patch)
tree255298b8b4bffbb3afa2334905bde46d481f5e14
parent0378cbe2863dac40fdcf96faf37168757acd355e (diff)
downloadaur-a963c14d8bb1bc2effa921850c9a2fd913d45654.tar.gz
Fixed PKGBUILD
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD85
2 files changed, 60 insertions, 45 deletions
diff --git a/.SRCINFO b/.SRCINFO
index cd8a2e15cfb..91081a6ef42 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,27 +2,27 @@ pkgbase = pm-utils
pkgdesc = Utilities and scripts for suspend and hibernate power management
pkgver = 1.4.1
pkgrel = 1
- url = http://pm-utils.freedesktop.org
+ url = https://pm-utils.freedesktop.org
arch = any
license = GPL
- makedepends = xmlto
makedepends = docbook-xml
makedepends = docbook-xsl
+ makedepends = xmlto
depends = bash
- depends = procps
depends = pm-quirks
- source = http://pm-utils.freedesktop.org/releases/pm-utils-1.4.1.tar.gz
+ depends = procps
+ source = pm-utils-1.4.1::https://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
- md5sums = 1742a556089c36c3a89eb1b957da5a60
- md5sums = a45149617bf3eb8dc32e6d9e22ae715d
- md5sums = edada31a7d722763513fbe705d95d19d
- md5sums = 298f78b873c03c025700d5da619ac134
- md5sums = d0040f7d30b6a0dd195b5401abbbbdb9
- md5sums = 9839687c8787d99fd4ff36aa3238c27b
+ sha256sums = 8ed899032866d88b2933a1d34cc75e8ae42dcde20e1cc21836baaae3d4370c0b
+ sha256sums = 5622a42167a5f6b725ecbe473d8f0994c4b3ac32e5c6607ce1fab0888894f139
+ sha256sums = 16d5355d1c5cff6316fef11768673434394582c67039c79e8b86aafe2d2f7797
+ sha256sums = 2af763812d609f384c818635028791c875e3e56a1fa387e80b7f1ca5afc3c4e3
+ sha256sums = c995912f25fd1f0c30c90136c36ac49e2d3a5fdb94ef1710a7e0426dd10dad8a
+ sha256sums = bbb646d8a657ef18962bfc956eba54ea59b77cc623841d31cd683bc7220d7074
pkgname = pm-utils
diff --git a/PKGBUILD b/PKGBUILD
index 2fe0f7013d1..4c7e834ecd3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,45 +1,60 @@
-# Mainteiner: David P. <megver83@openmailbox.org>
+# Maintainer: David P. <megver83@openmailbox.org>
pkgname=pm-utils
pkgver=1.4.1
pkgrel=1
pkgdesc="Utilities and scripts for suspend and hibernate power management"
arch=('any')
-url="http://pm-utils.freedesktop.org"
+url="https://pm-utils.freedesktop.org"
license=('GPL')
-depends=('bash' 'procps' '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
- 11netcfg)
-md5sums=('1742a556089c36c3a89eb1b957da5a60'
- 'a45149617bf3eb8dc32e6d9e22ae715d'
- 'edada31a7d722763513fbe705d95d19d'
- '298f78b873c03c025700d5da619ac134'
- 'd0040f7d30b6a0dd195b5401abbbbdb9'
- '9839687c8787d99fd4ff36aa3238c27b')
+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)
+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
+}
+
+build() {
+ cd "${pkgname}-${pkgver}"
+
+ ./configure \
+ --prefix=/usr \
+ --sbindir=/usr/bin \
+ --sysconfdir=/etc \
+ --localstatedir=/var
+
+ make
+}
package() {
- 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"
- ./configure --prefix=/usr \
- --sysconfdir=/etc \
- --localstatedir=/var
- make
- 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}
+ cd "${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}
}