summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c7893c4a49bdec16e618ead2455d6c16693970ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: Leandro Cunha <leandrocunha016@gmail.com>

pkgname=pngphoon
pkgver=1.4
pkgrel=2
pkgdesc="Create monochromatic image displaying the current phase of the moon"
arch=('x86_64')
url="https://git.h8u.de/svolli/pngphoon"
license=('GPL-2.0-only' 'BSD-2-Clause')
depends=('glibc' 'libpng')
source=("$url/archive/release_$pkgver.tar.gz" 
        "Fix-incorrect-pointer-and-change-to-time_t.patch"
        "Fix-FTBFS-using-GCC-15.patch")
sha256sums=('9fd6259cfe8b045014bd18432e2033900867c6d614c5d6eff430cd8150337285'
            '20d693fa2da31cc8994305693870ea4f27cb8f36800e32487619b965fb53c7d6'
            '467f3f9324fddcea8734f824d71f32df2bf2290e511790e0f46796b4df315d5a')

prepare() {
  cd "$srcdir/$pkgname"
  patch --forward --strip=1 --input="${srcdir}/Fix-incorrect-pointer-and-change-to-time_t.patch"	
  patch --forward --strip=1 --input="${srcdir}/Fix-FTBFS-using-GCC-15.patch"	
}

build() {
  cd "$srcdir/$pkgname"
  make
}

package() {
  cd "$srcdir/$pkgname"
  install -Dm755 pngphoon "$pkgdir/usr/bin/pngphoon"
  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}