Skip to content

Commit

Permalink
optimized ArchLinux and MSYS2 installation procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
swarnavaghosh04 committed Aug 25, 2023
1 parent 6713c74 commit d67903e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,12 @@ sudo rpm -i *.rmp
### ArchLinux

```
cpack -G TGZ
makepkg -si
```

### MSYS2 (Windows)

```
cpack -G TGZ
makepkg-mingw -si
```

Expand Down
14 changes: 7 additions & 7 deletions cmake/PKGBUILD-Archlinux.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ pkgdesc="@PROJECT_DESCRIPTION@"
arch=('any')
license=('GPL')
depends=('gnuradio' 'libsndfile')
source=("$pkgname-$pkgver.tar.gz")
md5sums=('SKIP')
source=()
md5sums=()
url="https://github.com/utat-ss/HERON-gr-utat"
build(){
cd "$srcdir"
cd ..
cmake .. -DCMAKE_INSTALL_PREFIX="/usr"
cmake --build .
}
package() {
cd "$srcdir"
tar -xf "$pkgname-$pkgver.tar.gz" -C "$pkgdir"
cd "$pkgdir"
mv "$pkgname-$pkgver" "usr"
cd ..
DESTDIR="$pkgdir" cmake --install .
}
11 changes: 6 additions & 5 deletions cmake/PKGBUILD-MSYS2.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ source=("$_realname-$pkgver.tar.gz")
md5sums=('SKIP')
url="https://github.com/utat-ss/HERON-gr-utat"
build(){
cd "$srcdir"
cd ..
MSYS2_ARG_CONV_EXCL="-DCMAKE_INSTALL_PREFIX=" \
cmake .. -DCMAKE_INSTALL_PREFIX=${MINGW_PREFIX}
cmake --build .
}
package() {
cd "$srcdir"
tar -xf "$_realname-$pkgver.tar.gz" -C "$pkgdir"
cd "$pkgdir"
mv "$_realname-$pkgver" "./${MINGW_PREFIX}"
cd ..
DESTDIR="$pkgdir" cmake --install .
}

0 comments on commit d67903e

Please sign in to comment.