blob: 02f6d96e58a9c877500be55e59e316e02f4778a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Maintainer: D3SOX <d3sox at protonmail dot com>
_reponame=Swig
pkgname=swig-cli
pkgver=3.0.0
pkgrel=1
pkgdesc="An easy to use git config manager"
arch=(any)
url="https://github.com/AlexanderDotH/$_reponame"
license=(custom)
depends=(git xdg-utils)
makedepends=(dotnet-host dotnet-sdk)
options=(!strip)
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
sha256sums=('SKIP')
prepare() {
cd "$srcdir/$_reponame-$pkgver/Build"
# modify build.sh to remove dotnet publish lines which do not contain linux
sed -i '/linux/! s/^dotnet publish/#dotnet publish/' build.sh
chmod +x build.sh
}
build() {
cd "$srcdir/$_reponame-$pkgver/Build"
./build.sh || true
}
package() {
cd "$srcdir/$_reponame-$pkgver"
install -Dm644 "LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm755 "Build/Swig/Linux/Swig.Console" "$pkgdir/usr/bin/swig-cli"
}
|