Skip to content

Commit

Permalink
Restored PKGBUILD file.
Browse files Browse the repository at this point in the history
Signed-off-by: chris <cbaba001@comcast.net>
  • Loading branch information
Chris-Baba committed Nov 1, 2024
1 parent 01c34a8 commit e9074f4
Showing 1 changed file with 80 additions and 0 deletions.
80 changes: 80 additions & 0 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# Maintainer: Chris Baba <cbaba001@comcast.net>

# When updating versions change 'pkgver', 'pkgrel' (if needed), and 'sha256sums.

pkgname=chemcalc
pkgver=0.9.1
pkgrel=1
pkgdesc='A chemical calculator that calculates the amount of reagents to use when making solutions.'
arch=('x86_64')
url='https://github.com/Chris-Baba/ChemCalc'
license=('GPL-3.0-or-later')

depends=(
'brotli'
'bzip2'
'curl'
'dbus'
'double-conversion'
'duktape'
'e2fsprogs'
'expat'
'fontconfig'
'freetype2'
'gcc-libs'
'glib2'
'glibc'
'graphite'
'harfbuzz'
'hicolor-icon-theme'
'icu'
'keyutils'
'krb5'
'libb2'
'libcap'
'libffi'
'libglvnd'
'libidn2'
'libnghttp2'
'libnghttp3'
'libpng'
'libproxy'
'libpsl'
'libssh2'
'libunistring'
'libx11'
'libxau'
'libxcb'
'libxdmcp'
'libxkbcommon'
'openssl'
'pcre2'
'qt6-base'
'systemd-libs'
'util-linux-libs'
'zlib'
'zstd'
)

makedepends=('cmake')

## Accepted naming method example:
## source=("${pkgname}-${pkgver}.tar.gz::https://github.com/coder/program/archive/v${pkgver}.tar.gz")

source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Chris-Baba/ChemCalc/archive/refs/tags/v${pkgver}.tar.gz")

sha256sums=('db535a1069ccaed50d6b0b965becc0357f44583ab235f7c77d7b37433b18b4c1')

build() {
cmake \
-B build \
-S ChemCalc-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX:PATH='/usr' \
-Wno-dev
cmake --build build
}

package() {
DESTDIR="$pkgdir" cmake --install build
}

0 comments on commit e9074f4

Please sign in to comment.