summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Blakeney2020-07-13 09:15:51 +1000
committerMark Blakeney2020-07-13 09:15:51 +1000
commit075ff2a1a8e9c2a5cdf8cd4f59c259bb4481e825 (patch)
tree8db7bd6395bf7bf85f94defd09d8abd3880a8710
parent198e75c756650c5cfca2cb3ece19ee7c9b761315 (diff)
downloadaur-075ff2a1a8e9c2a5cdf8cd4f59c259bb4481e825.tar.gz
Cosmetic changes after I adopt package
Also, added a .gitignore
-rw-r--r--.SRCINFO3
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD38
3 files changed, 27 insertions, 19 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5e0f56042e5..3410fd82f46 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -4,9 +4,8 @@ pkgbase = stockfish
pkgrel = 3
epoch = 1
url = https://stockfishchess.org/
- arch = i686
arch = x86_64
- arch = armv7
+ arch = i686
arch = armv7h
license = GPL3
depends = glibc
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..36b462233cd
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+pkg/
+src/
+*.tar
+*.zip
+*.[gx]z
diff --git a/PKGBUILD b/PKGBUILD
index 8ea5e536dbe..e6ee37fe243 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,4 +1,5 @@
-# Maintainer: Tod Jackson <tod.jackson@gmail.com>
+# Maintainer: mark.blakeney at bullet-systems dot net
+# Contributor: Tod Jackson <tod.jackson@gmail.com>
# Contributor: Özgür Sarıer <echo b3pndXJzYXJpZXIxMDExNjAxMTE1QGdtYWlsLmNvbQo= | base64 -d>
# Contributor: user6553591 <Message on Reddit>
# Contributor: P. Badredin <p dot badredin at gmail dot com>
@@ -10,7 +11,7 @@ pkgver=11
pkgrel=3
epoch=1
pkgdesc="A strong chess engine written by Tord Romstad, Marco Costalba, Joona Kiiski"
-arch=('i686' 'x86_64' 'armv7' 'armv7h')
+arch=('x86_64' 'i686' 'armv7h')
url="https://stockfishchess.org/"
license=('GPL3')
depends=('glibc')
@@ -18,23 +19,26 @@ source=("https://stockfishchess.org/files/$pkgname-$pkgver-linux.zip")
sha512sums=('f1505814d143e319a748ff7a0abe58ca37481aefdfaaab762b3efeff216294201e085b015b614e44369c7a55de1bbf6e18a0183230c02bdd2fd4945719aeca3d')
build() {
- cd "$pkgname-$pkgver-linux/src"
- if [[ "$CARCH" == "i686" ]]; then
- _arch=x86-32
- elif grep bmi2 /proc/cpuinfo 2>&1; then
- _arch=x86-64-bmi2
- elif grep popcnt /proc/cpuinfo 2>&1; then
- _arch=x86-64-modern
- elif [[ "$CARCH" == "armv7h" ]]; then
+ cd "$pkgname-$pkgver-linux/src"
+
+ if [[ "$CARCH" == "armv7h" ]]; then
_arch=armv7
- else
- _arch=x86-64
- fi
-
- make build ARCH="$_arch" COMP=gcc
+ elif [[ "$CARCH" == "i686" ]]; then
+ _arch=x86-32
+ elif grep -q bmi2 /proc/cpuinfo; then
+ _arch=x86-64-bmi2
+ elif grep -q popcnt /proc/cpuinfo; then
+ _arch=x86-64-modern
+ else
+ _arch=x86-64
+ fi
+
+ make build ARCH="$_arch" COMP=gcc
}
package() {
- cd "$pkgname-$pkgver-linux/src"
- make PREFIX="$pkgdir/usr" install
+ cd "$pkgname-$pkgver-linux/src"
+ make PREFIX="$pkgdir/usr" install
}
+
+# vim:set ts=2 sw=2 et: