summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorKyle Keen2020-02-01 09:52:12 -0500
committerKyle Keen2020-02-01 09:52:12 -0500
commit73918353cd895b5a173294c8acc4db170c0f5bd2 (patch)
tree180c382929b68e8fb689129d1799630767af2f02 /PKGBUILD
parent345fe3dfe35deb948d46746b094858e3ebfc7bb4 (diff)
downloadaur-discus.tar.gz
attempt at python3
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD21
1 files changed, 16 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 426c765230c..17b0f82e7d8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,18 +5,29 @@ pkgver=0.2.9
pkgrel=3
pkgdesc="A text-mode disk space usage program which aims to make df(1) prettier"
#url="http://www.raincrazy.com/software/discus/"
-url="http://www.debianhelp.co.uk/discus.htm"
+#url="http://www.debianhelp.co.uk/discus.htm"
+url="http://manpages.ubuntu.com/manpages/bionic/man1/discus.1.html"
arch=('any')
license=("GPL")
depends=('python2')
-#source=(http://www.raincrazy.com/software/discus/$pkgname-$pkgver.tar.gz)
-#source=(http://www.sfr-fresh.com/unix/privat/$pkgname-$pkgver.tar.gz)
-source=(http://kmkeen.com/tmp/$pkgname-$pkgver.tar.gz)
+#source=("http://www.raincrazy.com/software/discus/$pkgname-$pkgver.tar.gz")
+#source=("http://www.sfr-fresh.com/unix/privat/$pkgname-$pkgver.tar.gz")
+source=("http://kmkeen.com/tmp/$pkgname-$pkgver.tar.gz")
md5sums=('bcc4a08d03a0952b0b744655c45b04b8')
-package() {
+prepare() {
cd "$pkgname-$pkgver"
sed -i 's|/usr/bin/python|/usr/bin/env python2|' discus
+
+ # this is very weird with python3
+ #2to3 -w discus
+ #sed -i 's/stats = string.split(stats)/stats = stats.split()/' discus
+ #sed -i 's/mtab = string.split(mtab, "\n")/mtab = mtab.split("\n")/' discus
+ #sed -i 's/entry = string.split(entry)/entry = entry.split()/' discus
+}
+
+package() {
+ cd "$pkgname-$pkgver"
install -D -m755 discus "$pkgdir/usr/bin/discus"
install -D -m644 discusrc "$pkgdir/etc/discusrc"
install -D -m644 discus.1 "$pkgdir/usr/man/man1/discus.1"