diff options
author | Kyle Keen | 2020-02-01 09:52:12 -0500 |
---|---|---|
committer | Kyle Keen | 2020-02-01 09:52:12 -0500 |
commit | 73918353cd895b5a173294c8acc4db170c0f5bd2 (patch) | |
tree | 180c382929b68e8fb689129d1799630767af2f02 | |
parent | 345fe3dfe35deb948d46746b094858e3ebfc7bb4 (diff) | |
download | aur-discus.tar.gz |
attempt at python3
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 21 |
2 files changed, 19 insertions, 6 deletions
@@ -1,8 +1,10 @@ +# Generated by mksrcinfo v8 +# Sat Feb 1 14:52:10 UTC 2020 pkgbase = discus pkgdesc = A text-mode disk space usage program which aims to make df(1) prettier pkgver = 0.2.9 pkgrel = 3 - 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 @@ -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" |