summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archlinuxmw/correlation-git/PKGBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/archlinuxmw/correlation-git/PKGBUILD b/archlinuxmw/correlation-git/PKGBUILD
new file mode 100644
index 0000000..fbb8923
--- /dev/null
+++ b/archlinuxmw/correlation-git/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Mineralwater Xu <[email protected]>
+
+pkgname=correlation-git
+pkgver=r146.f0965a0
+pkgrel=1
+pkgdesc="Program calculates the main correlation functions of a material"
+arch=('x86_64')
+url="https://github.com/Isurwars/Correlation"
+license=('MIT')
+depends=('automake' 'autoconf' 'libtool')
+makedepends=('gcc')
+source=("${pkgname}::git+https://github.com/Isurwars/Correlation.git#branch=main"
+ "https://gist.githubusercontent.com/MineralwaterXu/114c0f8e1f25d4a36cfec83a3b66075e/raw/9284a4e24cda1633546b2aef620d9642ff4e9bbc/0001-Fix-function-strerror-declaration.patch")
+sha256sums=('SKIP'
+ 'SKIP')
+
+prepare() {
+ cd "${pkgname}"
+ patch -p1 -i ../0001-Fix-function-strerror-declaration.patch
+}
+pkgver() {
+ cd "${pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "${pkgname}"
+ aclocal
+ autoconf
+ automake --add-missing
+ chmod +x configure
+ chmod +x install-sh
+ ./configure
+ make
+}
+
+package() {
+ cd "${pkgname}"
+ install -Dm 755 "bin/correlation" -t "${pkgdir}/usr/bin"
+ install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/${pkgname}"
+# install -Dm 644 "correlation.1" -t "${pkgdir}/usr/share/man/man1"
+}