upgpkg: ufw 0.36.2-1
[ArchLinux/community.git] / xcftools / trunk / PKGBUILD
blob0122271623f8bbc0cd645e501671437408770ded
1 # Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
2 # Contributor: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org>
3 # Contributor: Jonathan Frawley <jonathanfrawley@gmail.com>
5 pkgname=xcftools
6 pkgver=1.0.7
7 pkgrel=9
8 pkgdesc='Command line tools for use with the open XCF image format (includes xcf2png)'
9 # no https available
10 url='http://henning.makholm.net/software'
11 arch=(x86_64)
12 license=(custom)
13 depends=(libpng perl)
14 source=("http://henning.makholm.net/xcftools/xcftools-$pkgver.tar.gz"
15         xcftools.patch
16         fs70042.patch::https://github.com/j-jorge/xcftools/commit/59c38e3e45b9112c2bcb4392bccf56e297854f8a.patch)
17 sha256sums=('1ebf6d8405348600bc551712d9e4f7c33cc83e416804709f68d0700afde920a6'
18             'fc70dbef790bc708b1609c4393a08e565f0617e697c735078e3368048dd33a4d'
19             'c3c6c3af9f4e47c0fc887543e6fae3e7c572bc4d4f627f40a02cbd8620dca3ae')
21 prepare() {
22   grep -A16 License "$pkgname-$pkgver/README" > LICENSE
23   cd $pkgname-$pkgver
24   patch -i "$srcdir/xcftools.patch"
25   patch -i "$srcdir/fs70042.patch"
28 build() {
29   cd $pkgname-$pkgver
30   ./configure --prefix=/usr
31   make
34 package() {
35   make DESTDIR="$pkgdir" -C $pkgname-$pkgver install
36   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"