Skip to content

Instantly share code, notes, and snippets.

@zellio
Created May 4, 2015 15:52
Show Gist options
  • Save zellio/f0e574211edd6519bc41 to your computer and use it in GitHub Desktop.
Save zellio/f0e574211edd6519bc41 to your computer and use it in GitHub Desktop.
Correction to rpm-utils PKGBUILD file
# Maintainer: Alan Brault <[email protected]>
# Contributor: Thomas Dziedzic < gostrc at gmail >
pkgname=yum-utils
pkgver=1.1.31
pkgrel=2
pkgdesc="A collection of utilities and plugins extending and supplementing yum in different ways."
arch=('any')
license=('GPLv2')
url="http://yum.baseurl.org/wiki/YumUtils"
depends=('yum')
source=(http://yum.baseurl.org/download/yum-utils/yum-utils-${pkgver}.tar.gz)
md5sums=('b2859b89321b98f2581243536e1b4993')
sha1sums=('aa96ccb97ad3a7c53a47c1bda418ce2604b77f1e')
sha256sums=('1f7a9bad2ad743399a7f73353f532636d38042b8f93943d8427e48161700e1f4')
sha512sums=('93ea249ad9635b8eff521cd4ddfad3cf318cfaafc67b4f5d70f574d2922609f60726c039388b7ca93cc8f1b5fbfa6242e4c15400c6e8c02279889aac72eba4b8')
build() {
cd ${pkgname}-${pkgver}
find -type f -exec sed -i 's_#!/usr/bin/python_&2_' {} \;
make
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
mv "${pkgdir}/lib" "${pkgdir}/usr"
mv "${pkgdir}/usr/sbin/"* "${pkgdir}/usr/bin"
rmdir "${pkgdir}/usr/sbin"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment