[arch-commits] Commit in keepassx/trunk (PKGBUILD)
Bartłomiej Piotrowski
bpiotrowski at nymeria.archlinux.org
Fri Jan 3 11:16:08 UTC 2014
Date: Friday, January 3, 2014 @ 12:16:08
Author: bpiotrowski
Revision: 103341
Split prepare function.
Modified:
keepassx/trunk/PKGBUILD
----------+
PKGBUILD | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-01-03 11:10:44 UTC (rev 103340)
+++ PKGBUILD 2014-01-03 11:16:08 UTC (rev 103341)
@@ -17,15 +17,19 @@
source=(http://downloads.sourceforge.net/keepassx/$pkgname-$pkgver.tar.gz)
md5sums=('1df67bb22b2e08df49f09e61d156f508')
+prepare() {
+ cd $pkgname-$pkgver
+ sed -i '1,1i#include <unistd.h>' src/lib/random.cpp
+ find -name '*.png' -exec optipng -quiet -force -fix {} \;
+}
+
build() {
- cd $srcdir/$pkgname-$pkgver
- sed -i '1,1i#include <unistd.h>' src/lib/random.cpp
+ cd $pkgname-$pkgver
qmake-qt4
make
- find -name '*.png' -exec optipng -quiet -force -fix {} \;
}
package() {
- cd $srcdir/$pkgname-$pkgver
- make INSTALL_ROOT=$pkgdir install
+ cd $pkgname-$pkgver
+ make INSTALL_ROOT="$pkgdir" install
}
More information about the arch-commits
mailing list