diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 57 |
1 files changed, 41 insertions, 16 deletions
@@ -1,22 +1,47 @@ -# Maintainer : Özgür Sarıer <echo b3pndXJzYXJpZXIxMDExNjAxMTE1QGdtYWlsLmNvbQo= | base64 -d> +# Maintainer: Techcable <$username @ techcable.net> +# Contributor: Dan Shick <dan.shick@gmail.com> +# Contributor: Bao Trinh <qubidt at gmail dot com> + +# This package is mirored on github at Techcable/aur-senpai +# PRs and issues welcome pkgname=senpai -pkgver=1.0 -pkgrel=1 -pkgdesc="UCI compliant open source chess engine by Fabien Letouzey" -arch=('i686' 'x86_64') -url="http://www.chessprogramming.net/senpai/" -license=('GPL') -depends=('gcc-libs') -source=("$pkgname.zip::http://maughancdn.s3.amazonaws.com/chess/senpai/1.0/Senpai-1.0.zip") -md5sums=('9ffa2370f8fd7ffd643fc6dc85c99f9e') +pkgver=0.2.0 +pkgrel=2 +pkgdesc='TUI IRC Client Created by ~taiite' +url=https://sr.ht/~taiite/senpai/ +arch=(x86_64 aarch64) +license=('ISC') +# Due to a naming conflict, this package was previously named 'senpai-irc' +# +# As of Jun 27, 2023, the other package has been removed. +# I have renamed the package to be more accurate. +# +# The binary continues to be aliased to "senpai-irc" for clarity and compatibility. +replaces=('senpai-irc') +conflicts=('senpai-git' 'senpai-irc-git') +makedepends=('go' 'scdoc') +source=("senpai-v${pkgver}.tar.gz::https://git.sr.ht/~taiite/senpai/archive/v${pkgver}.tar.gz") +sha256sums=('9786fd83f3e1067549c3c88455a1f66ec66d993fe597cee334d217a5d1cf4803') + +prepare () { + cd "${srcdir}/senpai-v${pkgver}" + make clean +} -build() { - cd "${srcdir}/Source/" - g++ -std=c++11 -march=native -pipe -O3 -finline-functions -funroll-all-loops -fno-rtti -lpthread -o senpai senpai_10.cpp +build () { + cd "${srcdir}/senpai-v${pkgver}" + export CGO_LDFLAGS="${LDFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + make GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" all } -package() { - cd "${srcdir}/Source/" - install -Dm0755 $pkgname ${pkgdir}/usr/bin/$pkgname +package () { + cd "${srcdir}/senpai-v${pkgver}" + make "DESTDIR=${pkgdir}" "PREFIX=/usr" install + # Alias binary as "senpai-irc" (gives compat with senpai-irc-git) + ln -sf "${pkgdir}/usr/bin/senpai" "senpai-irc" + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |