makedeb


pokemonsay-newgenerations-git 1baccc6d2021.10.04-2


cowsay but with pokemons. is forked from the original as the original was abandoned. this is revived with even more pokemons!

Click here to go back to the commit logs for pokemonsay-newgenerations-git.

Commit:


Hash: 57bfad2a08260ffab76a247f44361b12fcd739f0

Message: upstream change fix

Diff


diff --git a/.SRCINFO b/.SRCINFO
index c648c16..29d432b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,12 +3,13 @@ generated-by = makedeb-makepkg
 pkgbase = pokemonsay-newgenerations-git
 	pkgdesc = cowsay but with pokemons. is forked from the original as the original was abandoned. this is revived with even more pokemons!
 	pkgver = 742021.10.04
-	pkgrel = 1
+	pkgrel = 2
 	url = https://github.com/HRKings/pokemonsay-newgenerations.git
 	arch = x86_64
 	license = MIT
 	depends = cowsay
-	depends = fortunes
+	optdepends = fortunes
+	optdepends = fortune-mod
 	provides = pokemonsay-newgenerations
 	provides = pokemonsay
 	conflicts = pokemonsay-newgenerations
diff --git a/PKGBUILD b/PKGBUILD
index ab341e7..f1f49e1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,12 +2,12 @@
 pkgname=pokemonsay-newgenerations-git
 _pkgname=pokemonsay-newgenerations
 pkgver=742021.10.04
-pkgrel=1
+pkgrel=2
 pkgdesc="cowsay but with pokemons. is forked from the original as the original was abandoned. this is revived with even more pokemons!"
 arch=('x86_64')
-depends=('cowsay' 'fortunes')
+depends=('cowsay')
 makedepends=()
-optdepends=()
+optdepends=('fortunes'  'fortune-mod')
 url="https://github.com/HRKings/pokemonsay-newgenerations.git"
 license=('MIT')
 source=("git+${url}")
@@ -26,7 +26,7 @@ pkgver() {
 }
 
 package() {
-	cd ${srcdir}/${_pkgname}
+	cd ${_pkgname}
 	# Copy pokemon cowfiles
     install -d "${pkgdir}/opt/${_pkgname}/pokemons"
   	cp -vRf "pokemons/"* "${pkgdir}/opt/${_pkgname}/pokemons/"
@@ -35,7 +35,7 @@ package() {
         #mv "${pkgdir}/opt/${_pkgname}/pokemons/669_"* "${pkgdir}/opt/${_pkgname}/pokemons/669_Flabebe"
 
 	## Put the installation path on the script
-	sed -r "35s;.*;INSTALL_PATH=/opt/${_pkgname};" -i "pokemonsay.sh"
+	sed -r "37s;.*;INSTALL_PATH=/opt/${_pkgname};" -i "pokemonsay.sh"
 	## Change the pokemonthink to use the pokemonsay in the path
 	sed -r "7s;.*;pokemonsay --think \$@;" -i "pokemonthink.sh"