diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2014-09-15 02:13:27 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2014-09-15 02:13:27 +0200 |
commit | 145dade959a10c158d954c3cf4b39b5cc5b9069c (patch) | |
tree | 546f43340e671a7ce8a906b2025cb4bebd9e841e /xnew | |
parent | 748dcfd5ce93c0023c3677e590417952506d36c8 (diff) | |
download | xtools-145dade959a10c158d954c3cf4b39b5cc5b9069c.tar.gz xtools-145dade959a10c158d954c3cf4b39b5cc5b9069c.tar.xz xtools-145dade959a10c158d954c3cf4b39b5cc5b9069c.zip |
add xnew
Diffstat (limited to 'xnew')
-rwxr-xr-x | xnew | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/xnew b/xnew new file mode 100755 index 0000000..3b02781 --- /dev/null +++ b/xnew @@ -0,0 +1,34 @@ +#!/bin/sh -e +# xnew PKG - create XBPS template template + +PKG=${1?no package name given} +srcdir=$(xdistdir)/srcpkgs + +mkdir $srcdir/$PKG + +cat >$srcdir/$PKG/template <<EOF +# Template file for '$PKG' +pkgname=$PKG +version= +revision=1 +#wrksrc= +#create_wrksrc=yes +#only_for_archs="i686 x86_64" +build_style=gnu-configure +#configure_args="" +#make_build_args="" +#make_install_args="" +#conf_files="" +#make_dirs="/var/log/dir 0755 root root" +hostmakedepends="" +makedepends="" +depends="" +short_desc="" +maintainer="$(git config user.name) <$(git config user.email)>" +license="GPL-3" +homepage="" +distfiles="" +checksum=badbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadb +EOF + +exec ${EDITOR:-vim} +3 $srcdir/$PKG/template |