summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD50
1 files changed, 22 insertions, 28 deletions
diff --git a/PKGBUILD b/PKGBUILD
index f49df91078d..30c51b92e36 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,49 +1,43 @@
-# Contributor: 3ED <krzysztof1987@gmail.com>
+# Contributor: 3ED <krzysztofas@protonmail.com>
pkgname=gz-models
-_svnmod=GZ-Models
-pkgver=16
+pkgver=20130109
pkgrel=1
pkgdesc="HiRes 3D Models for GZDoom"
arch=('any')
url="http://code.google.com/p/ds-models/"
license=('GPL')
depends=('gzdoom')
-makedepends=('subversion' 'perl' 'p7zip')
+makedepends=('perl' 'p7zip')
install=gz-models.install
-source=("${_svnmod}::svn+http://ds-models.googlecode.com/svn/trunk/GZ-Models/")
-sha256sums=('SKIP')
-
-pkgver() {
- cd ${_svnmod}
- local ver="$(svnversion)"
- printf "%s" "${ver//[[:alpha:]]}"
-}
+source=("ds-models-${pkgver}.zip::https://storage.googleapis.com/google-code-archive-source/v2/code.google.com/ds-models/source-archive.zip")
+sha512sums=('6a3b7b9446d42e12371fab2b25bb2856ca79f5796ecd0c7e6f315ddb56c3eb57a88d406d4aa3b83c2f7bbb8fe04a8670602545b7bb8dbc114da21fc3b7ee6b96')
prepare() {
cd "$srcdir"
- find "$_svnmod" -type f -name "*.def" -print0|xargs -0 perl -pe 's/\xA0/ /g' -i
+ find "ds-models/trunk/GZ-Models" -type f -iname "*.def" -print0 \
+ | xargs -0 perl -p -i -e 's/\xA0/ /g'
- if [ -d "build" ]; then
- rm -rf "build"
+ if [ -d "$pkgname-$pkgver" ]; then
+ rm -rf "$pkgname-$pkgver"
fi
- mkdir -p -m 755 build/Models
- mv "$_svnmod"/Build/*/*.def build/
- mv "$_svnmod"/Build/Hires build/
- mv "$_svnmod"/Build/*/*/ build/Models/
-
- rm -rf "$_svnmod"
-}
+ install -dm755 "$pkgname-$pkgver/Models"
+ mv "ds-models/trunk/GZ-Models"/Build/*/*.def "$pkgname-$pkgver/"
+ mv "ds-models/trunk/GZ-Models"/Build/Hires "$pkgname-$pkgver/"
+ mv "ds-models/trunk/GZ-Models"/Build/*/*/ "$pkgname-$pkgver/Models/"
-build() {
- cd "$srcdir/build"
- 7za a -bd -tzip ../GZ-Models.pk3 *.def Models Hires
-# bsdtar --format zip -cf ../GZ-Models.pk3 *.def Models Hires # not working :<
+ rm -rf "ds-models"
}
package() {
- cd "$srcdir"
- install -Dm644 GZ-Models.pk3 "$pkgdir"/usr/share/games/gzdoom/GZ-Models.pk3
+ cd "$srcdir/$pkgname-$pkgver"
+
+ # Dunno if this is still a proper path
+ _DESTDIR="$pkgdir"/usr/share/games/gzdoom/
+
+ install -dm755 "$_DESTDIR"
+ 7za a -bd -tzip "$_DESTDIR"/GZ-Models.pk3 *.def Models Hires
+ chmod a=r,u+w "$_DESTDIR"/GZ-Models.pk3
}