Skip to content

Commit

Permalink
PKGBUILDs
Browse files Browse the repository at this point in the history
  • Loading branch information
neferin12 committed Nov 7, 2023
1 parent aa0c7d5 commit cd93cf6
Show file tree
Hide file tree
Showing 6 changed files with 98 additions and 0 deletions.
16 changes: 16 additions & 0 deletions arch_pkgs/c/cism/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
pkgbase = cism
pkgdesc = C implementation of iSM
pkgver = 1.0.3
pkgrel = 1
url = https://github.com/neferin12/iSM
arch = x86_64
license = MIT
makedepends = cmake
depends = glibc
depends = openmpi
depends = libism
provides = cism=1.0.3
source = cism-1.0.3.tar.gz::https://github.com/neferin12/iSM/archive/v1.0.3/cism-1.0.3.tar.gz
sha256sums = c19929a4e563aff8783b57715df2ca6221704d3ade0480bd556ce55ad5fb6a23

pkgname = cism
4 changes: 4 additions & 0 deletions arch_pkgs/c/cism/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*
!.gitignore
!PKGBUILD
!.SRCINFO
30 changes: 30 additions & 0 deletions arch_pkgs/c/cism/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Maintainer: Julian Pollinger <julian@pollinger.dev>

pkgname='cism'
pkgver=1.0.3
pkgrel=1
pkgdesc='C implementation of iSM'
arch=('x86_64')
url='https://github.com/neferin12/iSM'
license=('MIT')
depends=('glibc' 'openmpi' 'libism')
makedepends=('cmake')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('c19929a4e563aff8783b57715df2ca6221704d3ade0480bd556ce55ad5fb6a23')
provides=("$pkgname=$pkgver")

build() {
cmake -B build-$pkgver -S "iSM-$pkgver/c" \
-DCMAKE_BUILD_TYPE='None' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-Wno-dev -DINSTALL_LIB=OFF -DINSTALL_EXEC=ON
cmake --build build-$pkgver
}

check() {
cmake --build build-$pkgver --target test
}

package() {
DESTDIR="$pkgdir" cmake --install build-$pkgver
}
14 changes: 14 additions & 0 deletions arch_pkgs/c/libism/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pkgbase = libism
pkgdesc = Libraries for the C implementation of iSM
pkgver = 1.0.3
pkgrel = 1
url = https://github.com/neferin12/iSM
arch = x86_64
license = MIT
makedepends = cmake
depends = glibc
provides = libism=1.0.3
source = libism-1.0.3.tar.gz::https://github.com/neferin12/iSM/archive/v1.0.3/libism-1.0.3.tar.gz
sha256sums = c19929a4e563aff8783b57715df2ca6221704d3ade0480bd556ce55ad5fb6a23

pkgname = libism
4 changes: 4 additions & 0 deletions arch_pkgs/c/libism/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*
!.gitignore
!PKGBUILD
!.SRCINFO
30 changes: 30 additions & 0 deletions arch_pkgs/c/libism/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Maintainer: Julian Pollinger <julian@pollinger.dev>

pkgname='libism'
pkgver=1.0.3
pkgrel=1
pkgdesc='Libraries for the C implementation of iSM'
arch=('x86_64')
url='https://github.com/neferin12/iSM'
license=('MIT')
depends=('glibc')
makedepends=('cmake')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('c19929a4e563aff8783b57715df2ca6221704d3ade0480bd556ce55ad5fb6a23')
provides=("$pkgname=$pkgver")

build() {
cmake -B build-$pkgver -S "iSM-$pkgver/c" \
-DCMAKE_BUILD_TYPE='None' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-Wno-dev -DINSTALL_LIB=ON -DINSTALL_EXEC=OFF
cmake --build build-$pkgver
}

check() {
cmake --build build-$pkgver --target test
}

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

0 comments on commit cd93cf6

Please sign in to comment.