Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5924901 to your computer and use it in GitHub Desktop.
Save anonymous/5924901 to your computer and use it in GitHub Desktop.
var/cwd/remote/projects/romster-git/ports/whdd/Pkgfile
# Description: A HDD diagnostic and data recovery tool for Linux.
# URL: http://whdd.org/
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
# Packager: Danny Rawlins, monster dot romster at gmail dot com
# Depends on: cmake
name=whdd
version=git-d213ea
sversion=d213ea881038a1207df53b7bd11d385b2b2cd916
release=1
source=()
build() {
cd $PKGMK_SOURCE_DIR
if cd $name; then
git pull --rebase https://github.com/krieger-od/whdd master
git checkout $sversion
else
git clone https://github.com/krieger-od/whdd whdd
cd $name
git checkout $sversion
fi
cp -r $PKGMK_SOURCE_DIR/$name $SRC
cd $SRC/$name
cmake -DCMAKE_INSTALL_PREFIX=/usr
make
make DESTDIR=$PKG install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment