summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2d3c528b0d845c09396a03250852e6027ffe413c (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
# Maintainer:  AImixAE <AImixAE@outlook.com>

pkgname="mysh-git"
pkgver="1.1"
pkgrel="1"
pkgdesc=" This is My Shell"
arch=("any")
licence=("custom")
url="https://github.com/AImixAE/mysh"
makedepends=("git" "gcc" "cmake" "ninja" "patchelf")
# source=("git+https://ghproxy.cn/https://github.com/AImixAE/mysh.git")
source=("git+https://github.com/AImixAE/mysh.git")
sha512sums=("SKIP")

build() {
  cd ${srcdir}/mysh
  cmake -G Ninja -B build
  cd build
  ninja
}

check() {
  if [[ ! -f ${srcdir}/mysh/build/main ]]; then
    exit 1
  fi
}

package() {
  install -Dm644 ${srcdir}/mysh/build/main ${pkgdir}/usr/bin/mysh
  install -Dm644 ${srcdir}/mysh/build/lib*.so -t ${pkgdir}/usr/lib/mysh
  patchelf --set-rpath /usr/lib/mysh ${pkgdir}/usr/bin/mysh
}