Getting the latest Opera Next Arch PKGBUILD when the AUR is outdated
Thursday, August 4, 2011 11:21:17 AM
Since we haven't made any major packaging changes for some time, updating this PKGBUILD simply involves updating the Opera version number, build number, URL randomizer and the md5sums within the PKGBUILD tarring the result up and uploading it to the AUR. And since I am fairly lazy I wrote small shell script to gather this information from the Desktop Team blog and create the source package for me.
Anyway I figured I might as well share a simplified variant of this script so that people could use it directly if I am ever a delayed in updating the AUR in the future.
To use, download the script and make it executable via chmod, then simply run it. It will check the first download link on the Opera Desktop Team Blog make an Arch Linux source package containing a PKGBUILD based on that information.
For example as I write this the latest Opera Next snapshot is 12.00-1042. This is what I would see if I ran the build now.
First download the script and make it executable:
$ wget http://people.opera.com/ruario/opsnap4arch $ chmod +x opsnap4arch
Then run the script:
$ ./opsnap4arch The latest snapshot appears to be: 12.00-1042 Creating Arch source package: opera-next-12.00_1042-1.src.tar.gz
Alternatively, you could download and execute it in one go (via a pipe) like so:
$ wget -qO- http://people.opera.com/ruario/opsnap4arch | sh The latest snapshot appears to be: 12.00-1042 Creating Arch source package: opera-next-12.00_1042-1.src.tar.gz
As you can see the Arch source package opera-next-12.00_1042-1.src.tar.gz was created. Unpacking this will create an opera-next directory containing a PKGBUILD for 12.00-1042, which can be used with makepkg to create a native Arch package just like if it was downloaded from the AUR. So there you go, no more waiting!
P.S. If you want to get notifications of when new snapshots come out, simply subscribe to the RSS feed on the front page of the Opera Desktop Team blog (Opera even has its own built in RSS client). When you see there is a new snapshot out, just run opsnap4arch again to create an updated PKGBUILD.