Skip to content

First PKGBUILD! FAHViewer. Could you guys check it out for me?

https://github.com/burntcookie90/fahviewer_pkgbuild/blob/master/PKGBUILD

I'd like to submit this into the AUR if possible. This is utilized for folding at home clients to view the protein that is being folded.

edit: if anyone has an i686 machine, could you help test? thanks!

AUR: https://aur.archlinux.org/packages/fahviewer-beta/

Edited 14 Feb 2013. We only hold this version.

27 points12 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
27 · 100% up
Kind
Text
ID
18gp51

Author

26
posts
157
comments
9
media
View profile

12 comments

I would probably wrap up the common parts of the url in a variable for easier maintainability. For example, the following

if test "$CARCH" == i686; then
    source=(https://fah-web.stanford.edu/file-releases/beta/release/fahviewer/debian-testing-32bit/v7.3/fahviewer_${pkgver}_i386.deb)
    md5sums=('97d6bc7a1a1f350518f4e443370456ed')
else
    source=(https://fah-web.stanford.edu/file-releases/beta/release/fahviewer/debian-testing-64bit/v7.3/fahviewer_${pkgver}_amd64.deb)
    md5sums=('97d6bc7a1a1f350518f4e443370456ed')
fi

becomes

common_url='https://fah-web.stanford.edu/file-releases/beta/release/fahviewer/debian-testing-32bit/v7.3/fahviewer'
if test "$CARCH" == i686; then
    source=(${common_url}_${pkgver}_i386.deb)
    md5sums=('97d6bc7a1a1f350518f4e443370456ed')
else
    source=(${common_url}_${pkgver}_amd64.deb)
    md5sums=('97d6bc7a1a1f350518f4e443370456ed')
fi
16 points

Thanks for making this! The FAH project is installed in every work machine at my job, team effort!

4 points

Yes, thanks for doing what you can to further the project, as well.

You post reminded me of my old job. I used to run FAH on my work computer 24/7 silently and just get like 2k points per day from a small Pentium dual core. Good times.

2 points

When I was creating the PKGBUILDs for foldingathome and FAHControl, I also made one for FAHViewer.

I just never got around to uploading it.

Feel free to cannibalize any parts you think would help.

http://pastebin.com/z9y02xP3

1 points
unknown author1 hidden

This isn't bad looking at all. Arch is getting a little anal about double quotes on srcdir and what not, so you should double quote on the file paths with "${srcdir}" and what not.

My first packages were hideous. This looks really, really good, and it's a tricky package. Nice job :-).

1 points

Hey! Thanks a lot! I'll look into making those changes when I get back to my desktop.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.