summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Zhang2018-02-21 16:01:35 +0800
committerBruce Zhang2018-02-21 16:01:35 +0800
commitada393e1cd5c3231a5f3e531a55a8acacea7ddce (patch)
tree9d33c9856c849802e7b7c3c5dd08342a40179654
downloadaur-ada393e1cd5c3231a5f3e531a55a8acacea7ddce.tar.gz
initial release
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD29
-rw-r--r--ubports-installer.install7
3 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d604bc9c837
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = ubports-installer
+ pkgdesc = Install Ubuntu Touch on Your Device
+ pkgver = 0.1.9_beta
+ pkgrel = 1
+ epoch = 1
+ url = https://ubports.com/ubuntu-touch/get-ut
+ install = ubports-installer.install
+ arch = x86_64
+ license = GPL3
+ source = https://github.com/ubports/ubports-installer/releases/download/0.1.9-beta/ubports-installer_0.1.9-beta_amd64.deb
+ md5sums = 968f17430a0c448e535d4c4a86e9d03e
+
+pkgname = ubports-installer
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e3c4780750a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Bruce Zhang <zttt183525594@gmail.com>
+pkgname=ubports-installer
+_pkgcode=0.1.9
+_pkgstate=beta
+pkgver=${_pkgcode}_${_pkgstate}
+_pkgver=${_pkgcode}-${_pkgstate}
+pkgrel=1
+epoch=1
+pkgdesc="Install Ubuntu Touch on Your Device"
+arch=('x86_64')
+url="https://ubports.com/ubuntu-touch/get-ut"
+license=('GPL3')
+makedepends=()
+depends=()
+install=ubports-installer.install
+source=("https://github.com/ubports/ubports-installer/releases/download/${_pkgver}/ubports-installer_${_pkgver}_amd64.deb")
+md5sums=('968f17430a0c448e535d4c4a86e9d03e')
+
+prepare() {
+ cd "$srcdir"
+ # ar -x "ubports-installer_${_pkgver}_amd64.deb"
+ mkdir "${pkgname}-${pkgver}"
+ tar -Jxf data.tar.xz --directory="${srcdir}/${pkgname}-${pkgver}"
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ find ./{opt,usr} -type f -exec install -Dm755 {} "${pkgdir}/{}" \;
+}
diff --git a/ubports-installer.install b/ubports-installer.install
new file mode 100644
index 00000000000..bc05d6a6c40
--- /dev/null
+++ b/ubports-installer.install
@@ -0,0 +1,7 @@
+post_install() {
+ ln -s /opt/ubports-installer/ubports-installer /usr/bin/ubports-installer
+}
+
+post_remove() {
+ rm /usr/bin/ubports-installer
+}