diff options
author | Lucki | 2018-01-14 02:47:31 +0100 |
---|---|---|
committer | Lucki | 2018-01-14 02:47:31 +0100 |
commit | 56038d3740092bf3cefd4b51436cf7c2b17f0e19 (patch) | |
tree | 8add84eda88c18a382774b4119077daee27367e6 /PKGBUILD | |
parent | 58a34c2acf66e306dae42d65b1558237e655bb5e (diff) | |
download | aur-56038d3740092bf3cefd4b51436cf7c2b17f0e19.tar.gz |
Better PKGBUILD:
- remove `gendesk` completely
- add missing makedepends `git`, `openal` and `glu`
- change `libglvnd` to meta package `libgl`
- remove reference to `${startdir}`
- include the correct `.CHANGELOG`
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 28 |
1 files changed, 11 insertions, 17 deletions
@@ -2,40 +2,34 @@ # Contributor: leper <blubblub@mail.ru> pkgname=smokinguns-git -_pkgname=smokinguns +_pkgname=${pkgname%-git} pkgver=1.1.r859.gf5d9ecf2 -pkgrel=4 +pkgrel=5 pkgdesc='A semi-realistic simulation of the old west great atmosphere built on id Tech 3.' url="http://www.smokin-guns.org" arch=('i686' 'x86_64') license=('GPL2') changelog=.CHANGELOG -depends=('sdl' 'speex' 'hicolor-icon-theme' 'freetype2' 'libglvnd' 'libjpeg-turbo') -# makedepends=('gendesk') +depends=('sdl' 'speex' 'hicolor-icon-theme' 'freetype2' 'libgl' 'libjpeg-turbo') +makedepends=('git' 'openal' 'glu') conflicts=('smokinguns-bin' 'smokinguns' 'smokinguns-data') provides=('smokinguns-data' 'smokinguns') -source=("${pkgname}::git+https://github.com/smokin-guns/SmokinGuns.git" - "${pkgname}-data::http://www.smokin-guns.org/downloads/Smokin_Guns_1.1.zip" - "smokinguns.desktop") +source=("${_pkgname}::git+https://github.com/smokin-guns/SmokinGuns.git" + "${_pkgname}-data::http://www.smokin-guns.org/downloads/Smokin_Guns_1.1.zip" + "${_pkgname}.desktop") sha512sums=('SKIP' '51954ce00cccd9eb95a10491f0fcdea2d024058da11cbda7ee56c6369e8bc101d89ed95549cf4255393c3e1bec4585be12937e7ed7b20ff4cc0ce96685a5ce72' '37aefb4a9e811644af09bbbfdb35d6a2572bc70b6fe8ff0078330d1070e73ebcd18f2e656156f1e3d92b2ec7f6fdffe63b2c66018b449d8b5aa6402b3eb24d7d') pkgver() { - cd "${srcdir}/${pkgname}" + cd "${srcdir}/${_pkgname}" git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { - cd "${srcdir}" - # gendesk -n -f --name="Smokin' Guns" - - # update .CHANGELOG - git -C "${srcdir}/${pkgname}" log --graph -10 > "${startdir}/.CHANGELOG" - - cd "${srcdir}/${pkgname}" + cd "${srcdir}/${_pkgname}" # Set basedir echo "DEFAULT_BASEDIR = /usr/share/${_pkgname}" >> "Makefile.local" @@ -51,7 +45,7 @@ prepare() build() { - cd "${srcdir}/${pkgname}" + cd "${srcdir}/${_pkgname}" make } @@ -63,7 +57,7 @@ package() install -d "${pkgdir}/usr/share/${_pkgname}/${_pkgname}" install -m 644 ${_pkgname}/* "${pkgdir}/usr/share/${_pkgname}/${_pkgname}" - cd "${srcdir}/${pkgname}" + cd "${srcdir}/${_pkgname}" SUFFIX=${CARCH//i686/i386} install -Dm 755 "build/release-linux-${SUFFIX}/${_pkgname}.${SUFFIX}" "${pkgdir}/usr/bin/${_pkgname}" |