Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (10 sloc) 405 Bytes
#!/bin/sh
PACKAGE=gyazo
VERSION=1.2.1
# archive preparation
mkdir ${PACKAGE}-${VERSION} && cp -r src icons ${PACKAGE}-${VERSION}
tar czvf ../${PACKAGE}_${VERSION}.orig.tar.gz ${PACKAGE}-${VERSION}
mv ../${PACKAGE}_${VERSION}.orig.tar.gz $HOME/rpmbuild/SOURCES/
rpmbuild -ba redhat/gyazo.spec # build pkg
#rpm -i --test $HOME/rpmbuild/RPMS/ # test RPM
rm -rf ${PACKAGE}-${VERSION} # cleanup