Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

x11fs: Use new git download function.

  • Loading branch information...
onodera-punpun committed Apr 27, 2017
1 parent bdad508 commit bdb3a5061901dd6ea058df57bc1b1a51b7e476fe
Showing with 15 additions and 9 deletions.
  1. +2 −2 x11fs/.signature
  2. +13 −7 x11fs/Pkgfile
@@ -1,4 +1,4 @@
untrusted comment: verify with /etc/ports/6c37-git.pub
RWQY8eVY1sSPFdrbaroz2jDdJ9PZFcrk4j5Utqzs+t0wiCqepWuqVXuG+7ZlytxNiuWecHHyK36tm43GM1oifSZQRUqYp8KKFwY=
SHA256 (Pkgfile) = a975af45973c4ceabc5dbccd96670a575a7430c19d62660de7e7a612160deddc
RWQY8eVY1sSPFXjr7nY/6GvjKTIfEblDYHlziXDVMlEsmqXD0Ka8y34Hpj6N8xLxQ7PpxmLoCst0CxaCnn/T/jO/GepqBHJ9BwI=
SHA256 (Pkgfile) = 0b48cdec62273967c9ade7a456e77cc8481c6b6742f40c3a38428e926f058dc5
SHA256 (.footprint) = d44f63161d29a95d7e57d789e58d61ba4aeda21f4a840396ce385e0dc71d9236
@@ -8,16 +8,22 @@ version=git
release=1
source=()

build() {
cd $PKGMK_SOURCE_DIR

if cd $name; then
git fetch -q; git reset --hard origin/master
download_git() {
if [[ -d $PKGMK_SOURCE_DIR/$name ]]; then
git -C $PKGMK_SOURCE_DIR/$name fetch --depth=1
git -C $PKGMK_SOURCE_DIR/$name clean -f
git -C $PKGMK_SOURCE_DIR/$name reset --hard origin/$2
else
git clone https://github.com/sdhand/$name $name
cd $name
git -C $PKGMK_SOURCE_DIR clone --depth=1 $1 -b $2 $name
fi

cp -r $PKGMK_SOURCE_DIR/$name $PKGMK_WORK_DIR/src/$name
}

build() {
download_git https://github.com/sdhand/$name master
cd $name

make
make DESTDIR=$PKG install
}

0 comments on commit bdb3a50

Please sign in to comment.
You can’t perform that action at this time.