APKBUILD 1.14 KB
Newer Older
1
# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
3 4

pkgname=pcmanfm
5
pkgver=1.2.5
6
pkgrel=1
7 8 9 10 11
pkgdesc='Extremely fast and lightweight file manager'
arch='all'
url='http://pcmanfm.sourceforge.net/'
license='GPL'
makedepends='gtk+2.0-dev libfm-dev intltool'
Natanael Copa's avatar
Natanael Copa committed
12
subpackages="$pkgname-doc $pkgname-lang"
13 14 15 16 17 18
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.xz
	CVE-2017-8934.patch"

# secfixes:
#   1.2.5-r1:
#     - CVE-2017-8934
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34

build() {
  cd "$srcdir/$pkgname-$pkgver"

  ./configure --sysconfdir=/etc --prefix=/usr || return 1
  make LDFLAGS+=' -lm' || return 1
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install || return 1

  sed -i 's|x-directory/normal|inode/directory|' \
    "$pkgdir"/usr/share/applications/pcmanfm.desktop || return 1
}

35 36
sha512sums="ce53315483f58361c5a7797bdca355dbbedc2cf3907d319c7c65be844ea74ed297497dc3183c903e06b8294f6301d19347f6b9871e34bf773c04ff4fb8ab32f3  pcmanfm-1.2.5.tar.xz
31c669e61832c1144dac7ef619b8dcdef7ee43f3f40e874695bef6aecc81d53caabb66913ea96ed5c2f5d79ac9bb5379ef317d9428bef837013c18d24da7536e  CVE-2017-8934.patch"