blob: 7622ef2ed61d2d49e607e984ddade6699ebcb9cf (
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
34
35
36
37
38
|
# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
# Contributor: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org>
# Contributor: Jonathan Frawley <jonathanfrawley@gmail.com>
pkgname=xcftools
pkgver=1.0.7
pkgrel=10
pkgdesc='Command line tools for use with the open XCF image format (includes xcf2png)'
# no https available
url='http://henning.makholm.net/software'
arch=(x86_64)
license=(custom)
depends=(libpng perl)
source=("http://henning.makholm.net/xcftools/xcftools-$pkgver.tar.gz"
xcftools.patch
fs70042.patch::https://github.com/j-jorge/xcftools/commit/59c38e3e45b9112c2bcb4392bccf56e297854f8a.patch)
b2sums=('c603c35a82954107d73d1490b0fccf0944a90a52ab0ec08d816e7fc17651e7b022e7d60e53439eb346707a197cfee66bff677c850901ea981fbdb12c8aa4616d'
'e93993d2749d8a9224af582e9c86e271c3984830b5ee57f0f61c5741bffd7be17c875e162221debb297e8caa3816253209abadfea7a5ef889488d892ef397daf'
'7daa1b76344bee7e02d6d11f7582fad0939870cb9c6f3fe92b3d65dcfb740d5a24baacbbb0a01bf47b8f7c7583f86f3ca848a56bf27621522a8372cec58444b5')
prepare() {
grep -A16 License "$pkgname-$pkgver/README" > LICENSE
cd $pkgname-$pkgver
patch -i "$srcdir/xcftools.patch"
patch -i "$srcdir/fs70042.patch"
}
build() {
cd $pkgname-$pkgver
export CFLAGS+=' -Wno-implicit-function-declaration -Wno-int-conversion -w'
./configure --prefix=/usr
make
}
package() {
make DESTDIR="$pkgdir" -C $pkgname-$pkgver install
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|