epkgs-x86-musl/ecrypt

68 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2023-03-30 12:51:44 -04:00
#
# ecrypt
#
# Package metadata
PACKAGE_NAME="ecrypt"
PACKAGE_VER="1.0"
PACKAGE_DESC="Simple random string generator"
MAINTAINER="liamwaldron@everestlinux.org"
LICENSE="GPL v3"
ARCH="x86"
INCLUDED_FILES=("/usr/bin/ecrypt")
# Integrity checking
SHA256SUMS="8189477777d400de69bec363ec3e405db545941edf319e8e14ce99605dcf620d"
# Dependency information
DEPENDS=("")
2023-03-30 12:54:28 -04:00
CONFLICTS=("ecrypt-rtc")
2023-03-30 12:51:44 -04:00
# Source information
PACKAGE_SRC="https://git.everestlinux.org/EverestLinux/ecrypt"
SOURCES=("ecrypt")
# Installation
getsource() {
git clone $PACKAGE_SRC
cd ${SOURCES}
}
buildpkg() {
make ${MAKEFLAGS} ${CFLAGS} ${CXXFLAGS} # these MUST be set
}
installpkg() {
make install
# Never install files to /bin, they will get
# overwritten when the user pulls a new update
}
installpkg_system() {
PREFIX="/" make install
}
removepkg() {
rm /usr/bin/ecrypt
rm -rf /usr/share/man/man1/ecrypt.1.gz
}
removepkg_system() {
rm /bin/ecrypt
rm -rf /share/man/man1/ecrypt.1.gz
}
updatepkg() {
buildpkg "$@"
installpkg "$@"
}
updatepkg_system() {
buildpkg "$@"
installpkg_system "$@"
}
#
# end ecrypt
#