NyaMisty / AltServer-Linux

AltServer for AltStore, but on-device
GNU Affero General Public License v3.0
946 stars 73 forks source link

AUR package? #21

Open DonArt-Q opened 2 years ago

DonArt-Q commented 2 years ago

Could you upload AltServer-Linux to the AUR?

ghost commented 2 years ago

why don't you do it lmao

clansty commented 2 years ago

I have pushed an AUR package on https://aur.archlinux.org/packages/altserver/ with a Systemd service.

escape0707 commented 2 years ago

I can't see it now.

Edit: nvm, its altserver-bin

clansty commented 2 years ago

I have changed its name to altserver-bin

NyaMisty commented 2 years ago

Well, have you manually fixed my code using #9 ?

escape0707 commented 2 years ago

Well, have you manually fixed my code using #9 ?

It's an easy patch, we could add it into the AUR package. Although I'm still wondering about whether it's better to enabled it in the upstream?

clansty commented 2 years ago

I just used the binary in the Release

And I think we can make a -git version that is built from source

AlphaJack commented 2 years ago

@Clansty I'm working on it

Mythbusters123 commented 2 years ago

AUR package is broken, link is dead

AlphaJack commented 2 years ago

See #29, I've published libcorecrypto, but not the -git package yet. Other components are already availeble. I can publish the PKGBUILD I've used for #29, but keep in mind that it's broken at the moment

All3xJ commented 2 years ago

any news on the AUR package?

Mythbusters123 commented 2 years ago

should probably just use an alpine docker image to compile it

Get Outlook for iOShttps://aka.ms/o0ukef


From: All3xJ @.> Sent: Monday, February 14, 2022 4:45:02 PM To: NyaMisty/AltServer-Linux @.> Cc: Adam Reisenauer @.>; Comment @.> Subject: Re: [NyaMisty/AltServer-Linux] AUR package? (Issue #21)

any news on the AUR package?

— Reply to this email directly, view it on GitHubhttps://github.com/NyaMisty/AltServer-Linux/issues/21#issuecomment-1039599017, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOBKGRGELVNOWYF7JOMBKWDU3FZV5ANCNFSM5J4IRFUA. You are receiving this because you commented.Message ID: @.***>

AlphaJack commented 2 years ago

@All3xJ I'm waiting for @NyaMisty feedback on #29

All3xJ commented 2 years ago

should probably just use an alpine docker image to compile it

I tried with alpine docker image, but got this bug: https://github.com/NyaMisty/AltServer-Linux/issues/32

@All3xJ I'm waiting for @NyaMisty feedback on #29

ok! :)

NyaMisty commented 2 years ago

For all AUR package maker:

  1. This program simply can't build on other dist due to cpprestsdk
  2. I've uploaded the needed docker environment in this repo's Github Packages, you can pull the corresponding docker image to directly make without installing dependency. If Arch's source package can allow this, then it's possible
  3. Binaries for i386(i586), amd64, arm64, armv7 are fully compiled by github actions, now available in prerelease, and will be soon released after iOS 15 testing.
zhifuchang commented 2 years ago

I have made a PKGBUILD which is from scratch, archlinux has no static library, so need about 20 packages to add to the system, later I will share it.

zhifuchang commented 2 years ago

1.cpprestsdk

https://aur.archlinux.org/packages/cpprestsdk

2.altstore-linux PKGBUILD

` pkgname=altserver-linux pkgver=0.0.2 pkgrel=1 pkgdesc='AltServer for AltStore, but on-device' arch=(x86_64) url=https://github.com/NyaMisty/AltServer-Linux license=(custom) depends=(cpprestsdk crypto++-static libzip-static openssl-static) makedepends=( git unzip clang boost websocketpp python-cryptography )

_tag=5f9f81ac999535d274cc98821a5948f552d2b703 source=(git+https://github.com/NyaMisty/AltServer-Linux.git#tag=${_tag}) sha256sums=(SKIP)

_target='NO_USBMUXD_STUB=1 NO_UPNP_STUB=1' pkgver() { cd AltServer-Linux git describe --tags | sed 's/-.*$//g; s/v//g' }

prepare() { cd AltServer-Linux git submodule init git submodule update sed -i 's/ -mno-default//g' Makefile sed -i 's/.\/AltServerData/\/var\/AltServerData/g' src/AltServerApp.cpp }

build() { cd AltServer-Linux make ${_target} }

package() { cd AltServer-Linux make DESTDIR="${pkgdir}" PREFIX=/usr ${_target} install rm -rf "${pkgdir}"/usr/{include,bin,share} } `

3.all the static library can be modify from the dynamic libs

for example ` pkgname=crypto++-static pkgver=8.6.0 pkgrel=1 pkgdesc='A free C++ class library of cryptographic schemes' arch=(x86_64) url=https://www.cryptopp.com/ license=(custom) depends=(gcc-libs) makedepends=( git unzip crypto++ )

_tag=69bf6b53052b59ccb57ce068ce741988ae087317 source=(git+https://github.com/weidai11/cryptopp.git#tag=${_tag}) sha256sums=(SKIP)

pkgver() { cd cryptopp git describe --tags | sed 's/^CRYPTOPP//; s//./g' }

build() { export CXXFLAGS="$CXXFLAGS -DNDEBUG -fPIC" make PREFIX=/usr -C cryptopp static }

package() { make DESTDIR="${pkgdir}" PREFIX=/usr -C cryptopp install rm -rf "${pkgdir}"/usr/{include,bin,share} } `

NyaMisty commented 2 years ago

I've merged @zenochen 's PKGBUILD PR into master. Feel free to submit PR if more AUR related stuff is needed

derkrasseleo commented 1 year ago

I updated the package to 0.0.5: https://aur.archlinux.org/packages/altserver-bin