Skip to content

Commit

Permalink
First attempt at a wily pbuilder package
Browse files Browse the repository at this point in the history
  • Loading branch information
optimumtact committed Dec 28, 2015
0 parents commit bb1e342
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions sourceify.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash
# Downloads the upstream tarball and sets up a source package
NAME=toxic
GIT_URL=https://github.com/JFreegman/toxic

git clone $GIT_URL $NAME
cd $NAME
UVER=`git describe --tags | tail -c +2`
DVER=1
cd ..

mv $NAME "$NAME"-"$UVER"
mv "$NAME".debian.tar.xz "$NAME"_"$UVER"-"$DVER".debian.tar.xz
tar cfz "$NAME"_"$UVER".orig.tar.gz "$NAME"-"$UVER"
tar xvf "$NAME"_"$UVER"-"$DVER".debian.tar.xz -C "$NAME"-"$UVER"
sed s/UVER/$UVER/ -i "$NAME"-"$UVER"/debian/changelog
sed s/DVER/$DVER/ -i "$NAME"-"$UVER"/debian/changelog
dpkg-source -b "$NAME"-"$UVER"
Binary file added toxic.debian.tar.xz
Binary file not shown.

0 comments on commit bb1e342

Please sign in to comment.