diff options
author | Mike Swanson | 2013-08-05 17:44:38 -0700 |
---|---|---|
committer | Mike Swanson | 2013-08-05 17:44:38 -0700 |
commit | daa6d9908a8990458ef88a7856c9473d371540e2 (patch) | |
tree | 5b9ef3d4760b46115a6d560ce8419c468c2e2333 /PKGBUILD | |
download | aur-daa6d9908a8990458ef88a7856c9473d371540e2.tar.gz |
Add doom3bfg-data
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..65e77e43f744 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: Mike Swanson <mikeonthecomputer@gmail.com> + +# This is intended as a generic data package for open source Doom 3: +# BFG Edition engines. + +# You must copy (not link!) the base directory from Doom 3 BFG to the +# same directory containing this PKGBUILD. + +# The pkgver is from the ProductVersion of Doom3BFG.exe as downloaded +# from Steam (and viewed in winefile). Don't know if it is the +# official version number or if there even is one officially. + +# Currently only supports English-language installations. Proper +# multilingual support may be difficult and help on achieving the goal +# would be much appreciated. + +pkgname=doom3bfg-data +pkgver=1.0.34.6456 +pkgrel=1 +pkgdesc="Doom 3: BFG Edition game files" +url="http://www.idsoftware.com/" +arch=('any') +# Can't find any license in the game files. Presumably your standard EULA stuff. +license=('custom') +source=(base.sha256 doom3bfg.png) +sha256sums=('be5b2710d3890c9d1cfb9693003bce736b66d584d71dc56163c038181f939875' + '8b7998805ca2bdb8ab8500963acf4fab46331f1c44dcdc17b3e930f2afe98961') +PKGEXT=".pkg.tar" + +prepare() { + cd "$srcdir" + + mv ../base . + sha256sum -c base.sha256 --quiet + + # Sanitizing if it was copied from NTFS or wherever. + find base -type f -exec chmod 644 {} \; + find base -type d -exec chmod 755 {} \; +} + +package() { + cd "$srcdir" + + install -d "$pkgdir"/usr/share/games/doom3bfg + + # Some AUR bot will complain about this. + install -Dm 644 doom3bfg.png "$pkgdir"/usr/share/icons/doom3bfg.png + + mv base "$pkgdir"/usr/share/games/doom3bfg + find "$pkgdir"/usr/share/games/doom3bfg -exec chown root:root {} \; +} |