diff --git a/Makefile b/Makefile index 76fb858..f82e318 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ .PHONY: control -VERSION=7.3.0 +VERSION=7.7.1 MINOR=v10 help: diff --git a/android-studio/Makefile b/android-studio/Makefile new file mode 100644 index 0000000..68b0772 --- /dev/null +++ b/android-studio/Makefile @@ -0,0 +1,61 @@ +.PHONY: control + +TARBALL=/home/android-studio-2022.1.1.19-linux.tar.gz +VERSION=2022 +MINOR=1.1.19 +BASENAME=android-studio + +help: + @echo + @echo "make all # to attempt to download, extract and build the .deb package using dpkg" + @echo "make raw # to attempt to download, extract and build the .deb package using 'tar' and 'ar'" + @echo + +all: download clean extract DEBIAN build + +raw: download clean extract DEBIAN tar-ar + +clean: + rm -rf files/opt files/DEBIAN/control + rm -f *.deb + rm -f control.tar.xz data.tar.xz + rm -rf files/DEBIAN DEBIAN + +download: + @echo + @echo CHECK FOR NEW VERSION AT: https://developer.android.com/studio + @echo CHECK FOR NEW VERSION AT: https://developer.android.com/studio + @echo CHECK FOR NEW VERSION AT: https://developer.android.com/studio + @echo + +extract: + mkdir -p files/opt/ + cd files/opt/ && tar xfz ${TARBALL} + +# makes the DEBIAN/ directory +DEBIAN: + mkdir -p DEBIAN + make md5sum + make control + cp preinst DEBIAN + cp postinst DEBIAN + +control: + mkdir -p DEBIAN + cp control DEBIAN/ + echo Version: ${VERSION}.${MINOR} >>DEBIAN/control + +md5sum: + cd files/ && find -type f -exec md5sum '{}' \; |sort -k2 >../DEBIAN/md5sums + +build: + mv DEBIAN files/ + dpkg-deb --build files ${BASENAME}_${VERSION}.${MINOR}_amd64.deb + dpkg-deb --info ${BASENAME}_${VERSION}.${MINOR}_amd64.deb + +# how to make a debian package "raw" just using tar and ar +tar-ar: control + cd DEBIAN && tar --ignore-failed-read -cvJf ../control.tar.xz . + cd files && tar -cvJf ../data.tar.xz . + ar rcs ${BASENAME}_${VERSION}.${MINOR}_amd64.deb debian-binary control.tar.xz data.tar.xz + dpkg-deb --info ${BASENAME}_${VERSION}.${MINOR}_amd64.deb diff --git a/android-studio/README.md b/android-studio/README.md new file mode 100644 index 0000000..532372d --- /dev/null +++ b/android-studio/README.md @@ -0,0 +1,14 @@ +############################### + +Turn everything in files/ into a .deb debian package + +############################### + + +Needs to make a user and a few other things from + +https://docs.mattermost.com/install/install-tar.html + +also note debian packaging policy: + +https://salsa.debian.org/dbnpolicy/policy diff --git a/android-studio/control b/android-studio/control new file mode 100644 index 0000000..59a82e5 --- /dev/null +++ b/android-studio/control @@ -0,0 +1,14 @@ +Package: android-studio +Source: android-studio +Architecture: amd64 +Maintainer: Jeff Carr +Installed-Size: 5883 +Section: development +Priority: optional +Homepage: https://developer.android.com/studio +Description: android-studio + Raw tarball from upstream. + . + Files moved to be stored in /opt/android-studio + . + This packaging is simple. It is just the tarball. diff --git a/android-studio/debian-binary b/android-studio/debian-binary new file mode 100644 index 0000000..cd5ac03 --- /dev/null +++ b/android-studio/debian-binary @@ -0,0 +1 @@ +2.0 diff --git a/android-studio/postinst b/android-studio/postinst new file mode 100755 index 0000000..1a24852 --- /dev/null +++ b/android-studio/postinst @@ -0,0 +1 @@ +#!/bin/sh diff --git a/android-studio/preinst b/android-studio/preinst new file mode 100755 index 0000000..ad4f4d8 --- /dev/null +++ b/android-studio/preinst @@ -0,0 +1,3 @@ +#!/bin/sh -x + +# Is there something that should be done here?