diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-01-28 14:14:40 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-01-28 14:14:40 -0600 |
commit | d276fa6d89a6d82dc00628912b59c814d1715cbc (patch) | |
tree | 285abbb2efae27a06e4900473ba88837f76108b7 /community/pcmanfm/APKBUILD | |
parent | 1741feb1311e51965bada4e850e5f9d4a484c479 (diff) | |
download | aports-d276fa6d89a6d82dc00628912b59c814d1715cbc.tar.bz2 aports-d276fa6d89a6d82dc00628912b59c814d1715cbc.tar.xz |
community/pcmanfm: modernise, add check
Diffstat (limited to 'community/pcmanfm/APKBUILD')
-rw-r--r-- | community/pcmanfm/APKBUILD | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/community/pcmanfm/APKBUILD b/community/pcmanfm/APKBUILD index 462808dc64..9a0f435000 100644 --- a/community/pcmanfm/APKBUILD +++ b/community/pcmanfm/APKBUILD @@ -3,12 +3,12 @@ pkgname=pcmanfm pkgver=1.2.5 -pkgrel=1 -pkgdesc='Extremely fast and lightweight file manager' -arch='all' -url='http://pcmanfm.sourceforge.net/' -license='GPL' -makedepends='gtk+2.0-dev libfm-dev intltool' +pkgrel=2 +pkgdesc="Extremely fast and lightweight file manager" +arch="all" +url="https://wiki.lxde.org/en/PCManFM" +license="GPL-2.0+" +makedepends="gtk+2.0-dev libfm-dev intltool" subpackages="$pkgname-doc $pkgname-lang" source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.xz CVE-2017-8934.patch" @@ -18,18 +18,25 @@ source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.xz # - CVE-2017-8934 build() { - cd "$srcdir/$pkgname-$pkgver" + cd "$builddir" - ./configure --sysconfdir=/etc --prefix=/usr || return 1 - make LDFLAGS+=' -lm' || return 1 + ./configure \ + --sysconfdir=/etc \ + --prefix=/usr + make +} + +check() { + cd "$builddir" + make check } package() { - cd "$srcdir/$pkgname-$pkgver" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install - sed -i 's|x-directory/normal|inode/directory|' \ - "$pkgdir"/usr/share/applications/pcmanfm.desktop || return 1 + sed -i 's|x-directory/normal|inode/directory|' \ + "$pkgdir"/usr/share/applications/pcmanfm.desktop } sha512sums="ce53315483f58361c5a7797bdca355dbbedc2cf3907d319c7c65be844ea74ed297497dc3183c903e06b8294f6301d19347f6b9871e34bf773c04ff4fb8ab32f3 pcmanfm-1.2.5.tar.xz |