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

noice: Use new git download function.

  • Loading branch information...
onodera-punpun committed Apr 27, 2017
1 parent e2b3c35 commit 444a08297f43d63997d8b70473e7a53655cc39cd
Showing with 15 additions and 9 deletions.
  1. +2 −2 noice/.signature
  2. +13 −7 noice/Pkgfile
@@ -1,4 +1,4 @@
untrusted comment: verify with /etc/ports/6c37-git.pub
RWQY8eVY1sSPFUdyzqtXD9mw+KNutrYHoPRnK9Ox6g56QGqXV9vjHdJti7x6EIG6u148ts+ZJ/kBW5iX+ziCbRM2DCb2I/Rj7QI=
SHA256 (Pkgfile) = ec3ce50b9773302b55717ddf8fb903d2c0c0e6bb0aa7b3187f133e50f01686a6
RWQY8eVY1sSPFcuK5BIyJYeRkpRGXU3g0jioDkn+CFrOdxFEDRNfGB4pOyeJis4Tf8OzF2gv8Aw8E6pWhW/AS2uK2WWlANb0TQc=
SHA256 (Pkgfile) = d6153af77e69c5f04e8aa58e846ec27812c5054b4e6843dd6c1c3b44171f60d7
SHA256 (config.h) = a29e08d8ee951bd0dd4e20e529c8daee4fc63d0c8c08292e5861fbdf81e540fb
@@ -8,16 +8,22 @@ version=git
release=1
source=(config.h)

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://git.2f30.org/$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 git://git.2f30.org/$name master
cd $name

cp $SRC/config.h .

make

0 comments on commit 444a082

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