mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
Patching tiger - it would not build as released upstream.
This commit is contained in:
parent
16481f723a
commit
adb8a8fd6f
@ -8,17 +8,21 @@ arch=('i686' 'x86_64')
|
||||
url="http://www.nongnu.org/tiger/"
|
||||
license=('GPL')
|
||||
depends=('perl')
|
||||
makedepends=('patch')
|
||||
backup=('opt/tiger/config' 'etc/tiger/tigerrc' 'etc/tiger/cronrc')
|
||||
makedepends=('patch' 'debianutils')
|
||||
backup=('etc/tiger/tigerrc' 'etc/tiger/cronrc')
|
||||
source=("http://download.savannah.gnu.org/releases/${pkgname}/${pkgname}-${pkgver}.tar.gz"
|
||||
"${pkgname}-makefile.diff")
|
||||
'tiger-makefile.diff'
|
||||
'fix-genmsgidx-basedir.patch')
|
||||
md5sums=('f41076f645da9de937819bf6d516e546'
|
||||
'aadd12186c717dfe202d55d1192851c2')
|
||||
'aadd12186c717dfe202d55d1192851c2'
|
||||
'97255dbd16a663b2494df8d90829945e')
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
|
||||
patch -Np0 -i ${srcdir}/$pkgname-makefile.diff
|
||||
patch -Np0 -i "${srcdir}/tiger-makefile.diff"
|
||||
|
||||
patch -Np1 -i "${srcdir}/fix-genmsgidx-basedir.patch"
|
||||
|
||||
install -d "${pkgdir}/usr/share/tiger" "${pkgdir}/usr/sbin"
|
||||
|
||||
@ -30,7 +34,7 @@ build() {
|
||||
--with-tigerlog=/var/log/tiger \
|
||||
--with-tigerbin=/usr/sbin
|
||||
|
||||
make
|
||||
make -j1
|
||||
}
|
||||
|
||||
package() {
|
||||
|
22
tiger/fix-genmsgidx-basedir.patch
Normal file
22
tiger/fix-genmsgidx-basedir.patch
Normal file
@ -0,0 +1,22 @@
|
||||
diff -Naur a/util/genmsgidx b/util/genmsgidx
|
||||
--- a/util/genmsgidx 2011-12-28 11:58:04.399319906 +0000
|
||||
+++ b/util/genmsgidx 2011-12-28 12:09:01.852424013 +0000
|
||||
@@ -34,7 +34,8 @@
|
||||
esac
|
||||
done
|
||||
|
||||
-BASEDIR=${BASEDIR:=$basedir}
|
||||
+BASEDIR="${BASEDIR:=$basedir}"
|
||||
+BASEDIR="${BASEDIR%/}"
|
||||
export BASEDIR
|
||||
|
||||
findcmd()
|
||||
@@ -96,7 +97,7 @@
|
||||
haveallof variables BASEDIR || exit 1
|
||||
|
||||
# Clear idx file and detect error
|
||||
-> $BASEDIR/doc/explain.idx && {
|
||||
+> "${BASEDIR}/doc/explain.idx" || {
|
||||
echo "Error: Cannot write over the index file $BASEDIR/doc/explain.idx. Aborting"
|
||||
exit 1
|
||||
}
|
Loading…
Reference in New Issue
Block a user