Last active
September 15, 2016 05:48
-
-
Save jesseschalken/f39eff17857dc486eed515006a4e1d0b to your computer and use it in GitHub Desktop.
AUR double-conversion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/PKGBUILD b/PKGBUILD | |
index 201632c..893f879 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -4,27 +4,30 @@ | |
pkgname=double-conversion | |
pkgver=2.0.1 | |
-pkgrel=2 | |
+pkgrel=3 | |
pkgdesc='Binary-decimal and decimal-binary routines for IEEE doubles' | |
arch=(i686 x86_64) | |
url='https://code.google.com/p/double-conversion/' | |
license=(BSD3) | |
makedepends=(cmake) | |
-source=(https://double-conversion.googlecode.com/files/$pkgname-$pkgver.tar.gz | |
+source=(https://github.com/google/double-conversion/archive/v$pkgver.tar.gz | |
shared_lib.patch) | |
-sha1sums=('34644bfd063aba87436536e029b0dfb109df850f' | |
+sha1sums=('a590b4e9e1509bcf48da79a9c0571cfe218920f4' | |
'54abeec2090908c7ed229986826e8cce400edd1b') | |
prepare() { | |
- patch -p1 < shared_lib.patch | |
+ cd "$pkgname-$pkgver" | |
+ patch -p1 < ../shared_lib.patch | |
} | |
build() { | |
+ cd "$pkgname-$pkgver" | |
cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON | |
make | |
} | |
check() { | |
+ cd "$pkgname-$pkgver" | |
cd test | |
cmake . | |
# Currently tests fail | |
@@ -32,5 +35,6 @@ check() { | |
} | |
package () { | |
+ cd "$pkgname-$pkgver" | |
make DESTDIR="$pkgdir" install | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment