aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/emelfm2/APKBUILD
blob: d8078a552552dd525fa679bfcae81188475a6fe6 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=emelfm2
pkgver=0.9.1
pkgrel=0
pkgdesc="A file manager for UNIX-like operating systems"
url="http://emelfm2.net"
arch="all"
license="GPL3"
depends=""
depends_dev="file-dev gtk+2.0-dev"
makedepends="$depends_dev coreutils"
install=""
subpackages="$pkgname-lang $pkgname-doc"
source="http://emelfm2.net/rel/$pkgname-$pkgver.tar.bz2
	01-avoid_fstab.patch
	02-define_ALLPERMS.patch"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make PREFIX=/usr || return 1
}

package() {
	cd "$_builddir"
	make PREFIX="${pkgdir}/usr" install install_i18n || return 1

	install -m 755 "${pkgdir}/usr/share/pixmaps/emelfm2/emelfm2_48.png" \
	"${pkgdir}/usr/share/pixmaps/emelfm2.png"

	sed -e '/Icon=/ s^emelfm2/emelfm2_48.png^emelfm2.png^' \
	-e '/Categories=/ s^;$^;Application;Utility;^' \
	-i "${pkgdir}/usr/share/applications/emelfm2.desktop"
}

md5sums="ea83b73d76edf1cea5bce00ec630af6f  emelfm2-0.9.1.tar.bz2
4f307b7096291d1e6a14a29a7d6978bd  01-avoid_fstab.patch
9bb3d555f792afed972b47faec9863f3  02-define_ALLPERMS.patch"
sha256sums="bfb94ff4e40c0a9c0d2a6aeb0efa22e177accbf6abd3096226d93daecd23642f  emelfm2-0.9.1.tar.bz2
395ba0ea1140d229e343df8407433ab98de185708ec21c6502399dcfe7a310e4  01-avoid_fstab.patch
a0e597764b9d2842ecd2ea087797509c15dbda937e3b3116c4533e8ac3e45947  02-define_ALLPERMS.patch"
sha512sums="bd3a1ad2338c80d6824a2a84736470ecfa7e93f455cc8e3243944833807fe9b3544e2fea6bd6ccbddaf0188ad89ce616ed146271f6ffabec80f5dfb2f1ad6f57  emelfm2-0.9.1.tar.bz2
5b156e994eb62f034e8bb246f42633858fd0e3009a4997c54a7ba347b230ab80d2c307b0af961e174d149fc8878104c0350f7ded41d05424a6b11f9011ef6b17  01-avoid_fstab.patch
a3d860e9134654e61038cb13c8dc55c3da3885a6d42229f1976a0848a2570e62230c529764aa82620e3847c2093a8c5f36d1695b500b3b98517705b01acf26d6  02-define_ALLPERMS.patch"