From 939759b083b480e79f7ef995f0179b847e67bad6 Mon Sep 17 00:00:00 2001 From: Giovanni Santini Date: Thu, 9 Jul 2015 12:49:04 +0200 Subject: [PATCH] First AUR commit --- .SRCINFO | 33 +++++++++++++++++++++++++++++++++ PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ devscripts.install | 13 +++++++++++++ fixes.patch | 40 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 125 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD create mode 100644 devscripts.install create mode 100644 fixes.patch diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..b1e9258 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,33 @@ +pkgbase = devscripts + pkgdesc = Scripts to make the life of a Debian Package maintainer easier + pkgver = 2.15.4 + pkgrel = 1 + url = http://packages.qa.debian.org/d/devscripts.html + install = devscripts.install + arch = any + license = GPL2 + makedepends = po4a + makedepends = perl-timedate + makedepends = perl-libwww + makedepends = docbook-xsl + makedepends = perl-file-desktopentry + makedepends = perl-file-basedir + makedepends = perl-parse-debcontrol + makedepends = python-setuptools + depends = dpkg + depends = wget + depends = sed + depends = perl + depends = debianutils + depends = debhelper + optdepends = sensible-utils: for sensible alternative selection + options = !makeflags + source = http://ftp.debian.org/debian/pool/main/d/devscripts/devscripts_2.15.4.tar.xz + source = fixes.patch + source = devscripts.install + md5sums = 940e520d057b68fa565f15f057e73d52 + md5sums = 8a1a9315dabe0403c92938680319eae6 + md5sums = 5ca9e31b6cbe4f32115dedd3a2c2d5b0 + +pkgname = devscripts + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..ce25937 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: +# Contributor: Jochen Schalanda +# Contributor: Charles Pigott +# Contributor: André Klitzing +# Contributor: JD Horelick + +pkgname=devscripts +pkgver=2.15.4 +pkgrel=1 +pkgdesc="Scripts to make the life of a Debian Package maintainer easier" +arch=('any') +url="http://packages.qa.debian.org/d/devscripts.html" +license=('GPL2') +depends=('dpkg' 'wget' 'sed' 'perl' 'debianutils' 'debhelper') +optdepends=('sensible-utils: for sensible alternative selection') +makedepends=('po4a' 'perl-timedate' 'perl-libwww' 'docbook-xsl' 'perl-file-desktopentry' 'perl-file-basedir' 'perl-parse-debcontrol' 'python-setuptools') +options=('!makeflags') +source=(http://ftp.debian.org/debian/pool/main/d/${pkgname}/${pkgname}_${pkgver}.tar.xz fixes.patch devscripts.install) +install='devscripts.install' +md5sums=('940e520d057b68fa565f15f057e73d52' + '8a1a9315dabe0403c92938680319eae6' + '5ca9e31b6cbe4f32115dedd3a2c2d5b0') + +build() { + cd $srcdir/$pkgname-$pkgver + patch -p0 -i ../fixes.patch + make +} + +package() { + mkdir -p $pkgdir/etc/bash_completion.d + mkdir -p $pkgdir/usr/bin + mkdir -p $pkgdir/usr/lib/devscripts + mkdir -p $pkgdir/usr/share/devscripts + + + cd $srcdir/$pkgname-$pkgver + make DESTDIR=$pkgdir install +} diff --git a/devscripts.install b/devscripts.install new file mode 100644 index 0000000..cca372c --- /dev/null +++ b/devscripts.install @@ -0,0 +1,13 @@ +post_install() { + ln -s /usr/bin/debchange /usr/bin/dch +} + + +post_remove() { + rm /usr/bin/dch +} + +op=$1 +shift + +$op $* diff --git a/fixes.patch b/fixes.patch new file mode 100644 index 0000000..9dd4843 --- /dev/null +++ b/fixes.patch @@ -0,0 +1,40 @@ +--- po4a/Makefile 2013-09-17 11:58:14.177059023 +0100 ++++ po4a/Makefile 2013-09-17 11:57:31.943725986 +0100 +@@ -25,7 +25,7 @@ + pod2man --utf8 --center=" " --release="Debian-Hilfswerkzeuge" $< > $@ + de/%.de.1: de/%.de.dbk translate + xsltproc --nonet -o $@ \ +- /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl $< ++ /usr/share/xml/docbook/xsl-stylesheets-1.78.1/manpages/docbook.xsl $< + # xsltproc writes out to foo.1 even if you tell it to do otherwise, so we have + # to rename the file after it's generated + mv de/$*.1 $@ +@@ -35,7 +35,7 @@ + pod2man --utf8 --center=" " --release="Utilitaires Debian" $< > $@ + fr/%.fr.1: fr/%.fr.dbk translate + xsltproc --nonet -o $@ \ +- /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl $< ++ /usr/share/xml/docbook/xsl-stylesheets-1.78.1/manpages/docbook.xsl $< + # xsltproc writes out to foo.1 even if you tell it to do otherwise, so we have + # to rename the file after it's generated + mv fr/$*.1 $@ +--- scripts/Makefile 2011-02-09 08:39:18.000000000 +0100 ++++ scripts/Makefile 2011-02-13 17:50:50.393333338 +0100 +@@ -61,7 +61,7 @@ + pod2man --utf8 --center=" " --release="Debian Utilities" $< > $@ + %.1: %.dbk + xsltproc --nonet -o $@ \ +- /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl $< ++ /usr/share/xml/docbook/xsl-stylesheets-1.78.1/manpages/docbook.xsl $< + + # There is a slight chance this gets called twice, once here from here and once + # from ../po4a/Makefile. Treat files with care. +@@ -92,7 +92,7 @@ + $(foreach python,$(shell py3versions -r ../debian/control),$(python) setup.py test$(\n)) + + install: all +- python3 setup.py install --root="$(DESTDIR)" --no-compile --install-layout=deb ++ python3 setup.py install --root="$(DESTDIR)" --no-compile + install -dD $(DESTDIR)$(BINDIR) $(DESTDIR)$(PKGLIBDIR) + cp $(SCRIPTS) $(DESTDIR)$(BINDIR) + ln -sf edit-patch $(DESTDIR)$(BINDIR)/add-patch