summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b54da429d3c736eda55ed42354bc6d05f5de84a2 (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
# Maintainer: Asuka Minato <youremail@domain.com>
pkgname=clone-tracker
pkgver=1.18.2
pkgrel=1
pkgdesc="コピペコードに悩まされてきた開発環境へスマートなコード管理を実現"
arch=(x86_64)
url="https://clonetracker.com"
license=('custom')
depends=(webkit2gtk
	libsoup
	gdk-pixbuf2
	bash
	glibc
	pango
	gtk3
	zlib
	perl
	gcc-libs
	glib2
	cairo
	hicolor-icon-theme
)
source=("https://clonetracker.com/dl/clone-tracker_${pkgver}_amd64.AppImage")
sha256sums=('5f948add37b534a6794aa97317c3061d65f4cd0505c3ac65675be0ffc499a50f')

prepare() {
	chmod +x ./*.AppImage
	./*.AppImage --appimage-extract
	pushd squashfs-root
	rm usr/lib/lib*
	rm -r usr/share/glib-2.0
	rm usr/bin/xdg-open
	rm -r usr/lib/x86_64-linux-gnu/{gtk-3.0,gdk-pixbuf-2.0,webkit2gtk-4.0,gio}
	find . -xtype l -delete
	find . -type d -empty -delete
	find . -name "*.desktop" -print -exec sed -i 's/Exec=.*/Exec=GDK_BACKEND=x11 clone-tracker/' {} \;
	popd
	rm *.AppImage
}

package() {
	cp -av $srcdir/squashfs-root/usr $pkgdir

}