File APKBUILD of Package shc

# Maintainer: PICCORO Lenz McKAY <mckaygerhard@gmail.com>
# Maintainer: sodomon

pkgname="shc"
pkgver="4.0.3"
pkgrel=1
pkgdesc="Converts shell script to C source code, and then compiles it. Do NOT use this to encrypt your scripts as it is not meant to be used for that. But works for ofuscate the script!"
arch="all"
url='https://github.com/neurobin/shc'
license="GPL-3.0-or-later"
source="$pkgname_$pkgver.orig.tar.gz"
options="!check" # Test is disabled because developer didn't provide a test function

prepare() {
  cd "${pkgname}-${pkgver}"
}

build() {
  cd "${pkgname}-${pkgver}"
  if [ ! -s 'Makefile' ]; then
    ./configure --prefix='/usr/'
  fi
  make -j1
}

package() {
    install -v -m 0755 -d $pkgdir/bin/
    install -v -m 0755 $builddir/src/shc $pkgdir/bin/
}

sha512sums="
78fbab26c652b3c3a41401e044ae69776fbdf5d28736c55bcf111f4261f863f6d97d81e87ad9288faf9c9a3299c1453dcca9ffd9d9ea04a1ff2b7299257e8cf7  shc_4.0.3.orig.tar.gz
"
openSUSE Build Service is sponsored by