summaryrefslogtreecommitdiff
path: root/src/stage4/patches/riscv64/libatomic_ops.patch
diff options
context:
space:
mode:
Diffstat (limited to 'src/stage4/patches/riscv64/libatomic_ops.patch')
-rw-r--r--src/stage4/patches/riscv64/libatomic_ops.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/stage4/patches/riscv64/libatomic_ops.patch b/src/stage4/patches/riscv64/libatomic_ops.patch
new file mode 100644
index 0000000..dc8157f
--- /dev/null
+++ b/src/stage4/patches/riscv64/libatomic_ops.patch
@@ -0,0 +1,38 @@
+diff -rupN a/PKGBUILD b/PKGBUILD
+--- a/PKGBUILD 2018-04-05 13:18:24.267937899 +0200
++++ b/PKGBUILD 2018-04-05 13:18:24.268937899 +0200
+@@ -14,26 +14,28 @@ url='https://github.com/ivmai/libatomic_
+ depends=(glibc)
+ license=(GPL2 MIT)
+ options=(!docs)
+-source=($url/releases/download/v$pkgver/${pkgname}-${pkgver}.tar.gz)
+-sha256sums=('5b823d5a685dd70caeef8fc50da7d763ba7f6167fe746abca7762e2835b3dd4e')
++makedepends=(git)
++source=(git+https://github.com/ivmai/libatomic_ops.git)
++sha256sums=('SKIP')
+
+ prepare() {
+- cd $pkgname-$pkgver
++ cd $pkgname
+ }
+
+ build() {
+- cd $pkgname-$pkgver
++ cd $pkgname
++ autoreconf --install
+ ./configure --prefix=/usr --disable-static --enable-shared
+ make
+ }
+
+ check() {
+- cd $pkgname-$pkgver
++ cd $pkgname
+ make check
+ }
+
+ package() {
+- cd $pkgname-$pkgver
++ cd $pkgname
+ make DESTDIR="$pkgdir" install
+ install -Dm644 doc/LICENSING.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ }