diff options
author | Maxim Moseychuk | 2018-06-04 00:07:32 +0300 |
---|---|---|
committer | Maxim Moseychuk | 2018-06-04 00:07:32 +0300 |
commit | b0fe3ada0ded3fc6ba012166b8b4fbc01d4898b2 (patch) | |
tree | ccdc8e6ce69229620c29f93a95a88951fca877ac /PKGBUILD | |
parent | b12aaacc439f4d4d8c279b947f866031eb6e5bf2 (diff) | |
download | aur-b0fe3ada0ded3fc6ba012166b8b4fbc01d4898b2.tar.gz |
Fix export non-square minimaps
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=731486
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 31 |
1 files changed, 21 insertions, 10 deletions
@@ -2,25 +2,36 @@ # Maintainer: fshp (Maxim Moseychuk) <franchesko.salias.hudro.pedros@gmail.com> pkgname=gimp-dds pkgver=3.0.1 -pkgrel=5 +pkgrel=6 pkgdesc="A plugin for the GIMP version 2.8. It allows you to load and save images in the Direct Draw Surface (DDS) format" arch=('any') url=https://code.google.com/archive/p/gimp-dds license=('GPL2') depends=('gimp>=2.8.x' 'glib2' 'gtk2' 'pango' 'atk') makedepends=('pkg-config') -source=(https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/gimp-dds/gimp-dds-3.0.1.tar.bz2) -md5sums=('19a0310e97b93d836beb3239fa0cbd63') -sha256sums=('6e53df3b8b98c55f22fa7ea2c3ed17478626c924b24c69d499f5d813c3c2788a') +source=( + https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/gimp-dds/gimp-dds-3.0.1.tar.bz2 + non_square_mipmaps.patch) +sha256sums=( + '6e53df3b8b98c55f22fa7ea2c3ed17478626c924b24c69d499f5d813c3c2788a' + '6963e30890e668a8bd75b7d8fcff9ba160eb7306c3760459b706ff119b76bbe0') + +prepare() { + cd "$srcdir"/gimp-dds-$pkgver + + # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=731486 + patch -p1 -i ../non_square_mipmaps.patch +} build() { - cd gimp-dds-$pkgver - make + cd "$srcdir"/gimp-dds-$pkgver + + make } package() { - cd "$srcdir"/gimp-dds-"$pkgver" - install -dm755 "$pkgdir"/usr/lib/gimp/2.0/plug-ins/ - cp dds "$pkgdir"/usr/lib/gimp/2.0/plug-ins - chmod 755 "$pkgdir"/usr/lib/gimp/2.0/plug-ins/dds + cd "$srcdir"/gimp-dds-"$pkgver" + install -dm755 "$pkgdir"/usr/lib/gimp/2.0/plug-ins/ + cp dds "$pkgdir"/usr/lib/gimp/2.0/plug-ins + chmod 755 "$pkgdir"/usr/lib/gimp/2.0/plug-ins/dds } |