[pacman-dev] [PATCH] Add a PKGBUILD-python prototype
Signed-off-by: Dimitri Merejkowsky <yannicklm1337@gmail.com> --- Makefile.am | 2 +- PKGBUILD-python.proto | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 1 deletions(-) create mode 100644 PKGBUILD-python.proto diff --git a/Makefile.am b/Makefile.am index 32a08f7..3a4c81c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -14,7 +14,7 @@ EXTRA_DIST = HACKING # Sample makepkg prototype files pkgdatadir = ${datadir}/${PACKAGE} -dist_pkgdata_DATA = PKGBUILD.proto PKGBUILD-split.proto proto.install ChangeLog.proto +dist_pkgdata_DATA = PKGBUILD.proto PKGBUILD-split.proto PKGBUILD-python.proto proto.install ChangeLog.proto # run the pactest test suite and vercmp tests check-local: test/pacman test/util src/pacman src/util diff --git a/PKGBUILD-python.proto b/PKGBUILD-python.proto new file mode 100644 index 0000000..23aada7 --- /dev/null +++ b/PKGBUILD-python.proto @@ -0,0 +1,40 @@ +# This is an example PKGBUILD file for installing a python module +# Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Your Name <youremail@domain.com> +pkgname=NAME +pkgver=VERSION +pkgrel=1 +pkgdesc="" +arch=() +url="" +license=('GPL') +groups=() +depends=(python) +makedepends=(python) +optdepends=() +provides=() +conflicts=() +replaces=() +backup=() +options=() +install= +changelog= +source=($pkgname-$pkgver.tar.gz) +noextract=() +md5sums=() #generate with 'makepkg -g' + +build() { + cd "$srcdir/$pkgname-$pkgver" + python setup.py build +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + python setup.py install --root=$pkgdir +} + +# vim:set ts=2 sw=2 et: -- 1.7.3.1
On Fri, Oct 15, 2010 at 5:11 PM, Dimitri Merejkowsky <yannicklm1337@gmail.com> wrote:
Signed-off-by: Dimitri Merejkowsky <yannicklm1337@gmail.com> ---
It's already provided by abs: $ pacman -Qo /usr/share/pacman/PKGBUILD-python.proto /usr/share/pacman/PKGBUILD-python.proto is owned by abs 2.4.1-1
My mistake, sorry :) Yannick LM
participants (3)
-
Dimitri Merejkowsky
-
Eric Bélanger
-
Yannick LM