summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucki2017-09-05 16:27:20 +0200
committerLucki2017-09-05 16:27:20 +0200
commit5251b7595737cd112d0314b706cf6cc78059fafe (patch)
tree268e7fd842215be1f5d67b5c2e4f0b91f91dfca9
parent77fb7ae2e833029471fe6898032c3919f2b62c11 (diff)
downloadaur-5251b7595737cd112d0314b706cf6cc78059fafe.tar.gz
Actually place documentation in the right placeā€¦
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD20
2 files changed, 13 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8fac409b7b3..172bd362af5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Mon Jun 5 16:02:56 UTC 2017
+# Tue Sep 5 14:25:48 UTC 2017
pkgbase = londonlaw-git
pkgdesc = Clone of the famous Scotland Yard board game with network support.
pkgver = 0.3.0_pre2.r1.g35d419f
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/anyc/londonlaw
changelog = .CHANGELOG
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index 9fc3b424048..9a3628006d8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,35 +2,37 @@
# Contributor: Nikos Kouremenos <nkourAATTfreemail.gr>
pkgname=londonlaw-git
-_pkgname=londonlaw
pkgver=0.3.0_pre2.r1.g35d419f
-pkgrel=1
+pkgrel=2
pkgdesc="Clone of the famous Scotland Yard board game with network support."
arch=('any')
url="https://github.com/anyc/londonlaw"
license=('GPL2')
changelog=.CHANGELOG
depends=('python2' 'python2-twisted' 'wxpython' 'python2-zope-interface')
-provides=('londonlaw')
-conflicts=('londonlaw')
-source=(${_pkgname}::git+https://github.com/anyc/londonlaw.git)
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+source=(${pkgname%-git}::git+https://github.com/anyc/londonlaw.git)
sha512sums=('SKIP')
pkgver()
{
- cd "${srcdir}/${_pkgname}"
+ cd "${srcdir}/${pkgname%-git}"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare()
{
# update .CHANGELOG
- git -C "${srcdir}/${_pkgname}" log --graph -10 > "${startdir}/.CHANGELOG"
+ git -C "${srcdir}/${pkgname%-git}" log --graph -10 > "${startdir}/.CHANGELOG"
}
package()
{
- cd "${srcdir}/${_pkgname}"
+ cd "${srcdir}/${pkgname%-git}"
python2 setup.py install --root=${pkgdir} --prefix=/usr --optimize=1
- cp -r "${srcdir}/${_pkgname}/doc" "${pkgdir}/usr/share/"
+
+ # https://lists.archlinux.org/pipermail/aur-general/2011-November/016777.html
+ mkdir -p "${pkgdir}/usr/share/doc/${pkgname%-git}"
+ cp -dpr --no-preserve=ownership "doc/." "${pkgdir}/usr/share/doc/${pkgname%-git}"
}