Skip to content

Commit

Permalink
Add and provide libminiscript-cpp
Browse files Browse the repository at this point in the history
Also fix issue 159:
* JoeStrout/miniscript#159
  • Loading branch information
kseistrup committed Jul 15, 2024
1 parent d023672 commit eaa4726
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 7 deletions.
10 changes: 8 additions & 2 deletions .SRCINFO
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
pkgbase = miniscript-cli
pkgdesc = Simple, elegant programming language
pkgdesc = Simple, elegant language for embedding or learning to program
pkgver = 1.6.2
pkgrel = 2
pkgrel = 3
url = https://miniscript.org/
changelog = miniscript-cli.changelog
arch = aarch64
arch = x86_64
license = MIT
makedepends = cmake
makedepends = patch
depends = gcc-libs
depends = glibc
provides = libminiscript-cpp
provides = miniscript
options = lto
options = staticlibs
source = miniscript-cli-1.6.2.tar.gz::https://github.com/JoeStrout/miniscript/archive/refs/tags/v1.6.2.tar.gz
source = miniscript-cli-mktime.diff
sha256sums = 62df0ce8faca21db588ed5f0abe020a41602c8fc02376f6b2385869863acbefd
sha256sums = 2b6b8a55ec46f6ce40aeec3ffd4c0d8a0a5d4c7ca499824ec8944729fcc5515d
b2sums = 07e1b8c37b382568495422747729546705cdc2b5d4f3a79e3b2b6435fe56e8776bb33941347c6e617851527d5224c8b40a914eb592bd210b4b97a23f38a91fae
b2sums = 7d775db5fcb2362091cb32ab347af17397338733a044d2a6226534e4e8bea87065a055fffbfd1f7adc0c8a3ac44cf6623d2d36f22c7d519bcf45ddb3a0942f89

pkgname = miniscript-cli
22 changes: 17 additions & 5 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,30 @@

pkgname='miniscript-cli'
_pkgname="${pkgname/-cli}"
pkgdesc='Simple, elegant programming language'
pkgdesc='Simple, elegant language for embedding or learning to program'
pkgver=1.6.2
pkgrel=2
pkgrel=3
epoch=
url='https://miniscript.org/'
_url='https://github.com/JoeStrout/miniscript'
changelog="$pkgname.changelog"
arch=('aarch64' 'x86_64')
license=('MIT') # SPDX-License-Identifier: MIT
depends=('gcc-libs' 'glibc')
makedepends=('cmake')
provides=('miniscript')
options=('lto')
makedepends=('cmake' 'patch')
provides=('libminiscript-cpp' 'miniscript')
options=('lto' 'staticlibs')
source=(
"$pkgname-$pkgver.tar.gz::$_url/archive/refs/tags/v$pkgver.tar.gz"
'miniscript-cli-mktime.diff'
)
LTOFLAGS='-flto -ffat-lto-objects'

prepare() {
cd "$_pkgname-$pkgver"

patch -p1 < ../miniscript-cli-mktime.diff
}

build() {
cd "$_pkgname-$pkgver/MiniScript-cpp"
Expand Down Expand Up @@ -53,6 +61,8 @@ package() {

install -vDm0755 -t "$pkgdir/opt/miniscript" \
build/miniscript
install -vDm0644 -t "$pkgdir/usr/lib" \
build/libminiscript-cpp.a
install -vDm0644 -t "$pkgdir/opt/miniscript/lib" \
lib/*.ms
install -vDm0644 -t "$pkgdir/usr/share/doc/$pkgname/demo" \
Expand All @@ -72,9 +82,11 @@ package() {

sha256sums=(
'62df0ce8faca21db588ed5f0abe020a41602c8fc02376f6b2385869863acbefd'
'2b6b8a55ec46f6ce40aeec3ffd4c0d8a0a5d4c7ca499824ec8944729fcc5515d'
)
b2sums=(
'07e1b8c37b382568495422747729546705cdc2b5d4f3a79e3b2b6435fe56e8776bb33941347c6e617851527d5224c8b40a914eb592bd210b4b97a23f38a91fae'
'7d775db5fcb2362091cb32ab347af17397338733a044d2a6226534e4e8bea87065a055fffbfd1f7adc0c8a3ac44cf6623d2d36f22c7d519bcf45ddb3a0942f89'
)

# eof

0 comments on commit eaa4726

Please sign in to comment.