Skip to content

Commit

Permalink
make split package
Browse files Browse the repository at this point in the history
  • Loading branch information
neferin12 committed Nov 8, 2023
1 parent 75067a5 commit 73babaf
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 85 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/arch_pkgs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ jobs:
matrix:
package:
[
c/cism,
c/libism
c
]
runs-on: ubuntu-latest
steps:
Expand Down
12 changes: 9 additions & 3 deletions arch_pkgs/c/libism/.SRCINFO → arch_pkgs/c/.SRCINFO
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
pkgbase = libism
pkgdesc = Libraries for the C implementation of iSM
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
provides = libism=1.0.3
depends = openmpi
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
depends = glibc

pkgname = cism
depends = glibc
depends = openmpi
depends = libism
File renamed without changes.
43 changes: 43 additions & 0 deletions arch_pkgs/c/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Maintainer: Julian Pollinger <julian@pollinger.dev>

pkgbase='cism'
pkgname=('libism' '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')
makedepends=('cmake')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")

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

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

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

package_libism() {
depends=('glibc')
DESTDIR="$pkgdir" cmake --install build-$pkgver-libism
}

package_cism() {
depends=('glibc' 'openmpi' 'libism')
DESTDIR="$pkgdir" cmake --install build-$pkgver-cism
}
sha256sums=('c19929a4e563aff8783b57715df2ca6221704d3ade0480bd556ce55ad5fb6a23')
16 changes: 0 additions & 16 deletions arch_pkgs/c/cism/.SRCINFO

This file was deleted.

30 changes: 0 additions & 30 deletions arch_pkgs/c/cism/PKGBUILD

This file was deleted.

4 changes: 0 additions & 4 deletions arch_pkgs/c/libism/.gitignore

This file was deleted.

30 changes: 0 additions & 30 deletions arch_pkgs/c/libism/PKGBUILD

This file was deleted.

0 comments on commit 73babaf

Please sign in to comment.