Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PKGBUILD #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .SRCINFO
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
# Generated by makepkg 4.2.0
# Sun Jan 18 16:54:38 UTC 2015
pkgbase = python2-pyifbabel
pkgdesc = A pure-Python implementation of the Treaty of Babel for interactive fiction
pkgver = 0.4
pkgrel = 1
pkgrel = 3
url = http://pyifbabel.invergo.net
arch = any
license = GPL
depends = python2
options = !emptydirs
source = http://pyifbabel.invergo.net/download/pyifbabel-0.4.tar.gz
md5sums = 1c7af09e4a2ae451fc74aff46037d425
source = python2-pyifbabel.patch
sha256sums = 38c7f1b3163b6ddd6591b1f8fce028ea983637a9dec8c3626aac21c3c536c30e
sha256sums = 3616feaa0adddb21df2dea165f3f5c2dbedabbf043a30f7b2b5b68058f8e0def

pkgname = python2-pyifbabel

29 changes: 20 additions & 9 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,21 +1,32 @@
# Maintainer: Brandon Invergo <[email protected]>
# Maintainer: Joost Bremmer <[email protected]>
# Contributor: Brandon Invergo <[email protected]>
pkgname=python2-pyifbabel
_pythonname=pyifbabel
pkgver=0.4
pkgrel=1
pkgrel=3
pkgdesc="A pure-Python implementation of the Treaty of Babel for interactive fiction"
arch=('any')
url="http://pyifbabel.invergo.net"
license=('GPL')
depends=('python2')
options=(!emptydirs)
source=("http://pyifbabel.invergo.net/download/${_pythonname}-$pkgver.tar.gz")
md5sums=('1c7af09e4a2ae451fc74aff46037d425')
source=("http://pyifbabel.invergo.net/download/${pkgname##python2-}-$pkgver.tar.gz"
"$pkgname.patch")
sha256sums=('38c7f1b3163b6ddd6591b1f8fce028ea983637a9dec8c3626aac21c3c536c30e'
'3616feaa0adddb21df2dea165f3f5c2dbedabbf043a30f7b2b5b68058f8e0def')


prepare() {
cd "$srcdir"
patch -Np1 -i "$pkgname.patch" "${pkgname#python2-}-$pkgver/setup.py"
}
build() {
cd "$srcdir/${pkgname##python2-}-$pkgver"
python2 setup.py build
}


package() {
cd "$srcdir/${_pythonname}-$pkgver"
./configure --prefix="$pkgdir/" PYTHON=/usr/bin/python2
make install
cd "$srcdir/${pkgname##python2-}-$pkgver"
python2 setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}

# vim:set ts=2 sw=2 et:
11 changes: 11 additions & 0 deletions python2-pyifbabel.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- old/pyifbabel-0.4/setup.py 2014-10-26 22:03:54.000000000 +0100
+++ new/pyifbabel-0.4/setup.py 2019-10-07 02:39:54.987665154 +0200
@@ -24,7 +24,7 @@
import os.path

if platform.system() == 'Linux':
- doc_dir = '/usr/local/share/doc/pyifbabel'
+ doc_dir = '/usr/share/doc/pyifbabel'
else:
try:
from win32com.shell import shellcon, shell