File PKGBUILD 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=('x86_64')
url='https://github.com/neurobin/shc'
license=('GPL')
source=("${pkgname}_${pkgver}.orig.tar.gz")
# options=("!check") # Test is disabled because developer didn't provide a test function
md5sums=('SKIP')
sha256sums=('SKIP')
b2sums=('SKIP')
prepare() {
cd "${pkgname}-${pkgver}"
}
build() {
cd "${pkgname}-${pkgver}"
if [ ! -s 'Makefile' ]; then
./configure --prefix='/usr/'
fi
make -j1
}
package() {
cd "${pkgname}-${pkgver}"
make install DESTDIR="${pkgdir}"
}