I downloaded the master branch on your advice. Installed libdb-dev. But I still get the error message.
zu@zu-pc:~/Slimcoin-master/src$ apt install libdb-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libdb-dev is already the newest version (1:5.3.21~exp1ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
zu@zu-pc:~/Slimcoin-master/src$ make -f makefile.unix
/bin/sh ../share/genbuild.sh obj/build.h
fatal: not a git repository (or any of the parent directories): .git
g++ -c -pipe -fstack-protector -fstack-protector-all --param ssp-buffer-size=1 -D_FORTIFY_SOURCE=2 -g -D_REENTRANT -Wno-ignored-qualifiers -Wno-unused-variable -fdiagnostics-show-option -fpermissive -fPIC -pthread -D_REENTRANT -Wall -Wextra -Wno-sign-compare -Wno-invalid-offsetof -Wno-unused-parameter -Wformat -Wformat-security -g3 -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DBOOST_NO_CXX11_SCOPED_ENUMS -I/home/zu/Slimcoin-master/src -I/home/zu/Slimcoin-master/src/obj -std=c++11 -DUSE_UPNP=0 -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o obj/checkpoints.o checkpoints.cpp
In file included from checkpoints.cpp:12:0:
db.h:16:10: fatal error: db_cxx.h: No such file or directory
#include
^~~~~~~~~~
compilation terminated.
makefile.unix:145: recipe for target 'obj/checkpoints.o' failed
make: *** [obj/checkpoints.o] Error 1