First AUR commit

This commit is contained in:
Giovanni Santini
2015-07-09 12:49:04 +02:00
commit 939759b083
4 changed files with 125 additions and 0 deletions

33
.SRCINFO Normal file
View File

@@ -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

39
PKGBUILD Normal file
View File

@@ -0,0 +1,39 @@
# Maintainer: <giovannisantini93@yahoo.it>
# Contributor: Jochen Schalanda <jochen+aur@schalanda.name>
# Contributor: Charles Pigott <charlespigott@googlemail.com>
# Contributor: André Klitzing <aklitzing@online.de>
# Contributor: JD Horelick <jdhore1@gmail.com>
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
}

13
devscripts.install Normal file
View File

@@ -0,0 +1,13 @@
post_install() {
ln -s /usr/bin/debchange /usr/bin/dch
}
post_remove() {
rm /usr/bin/dch
}
op=$1
shift
$op $*

40
fixes.patch Normal file
View File

@@ -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