this post was submitted on 14 Aug 2026
373 points (97.7% liked)

linuxmemes

32473 readers
1525 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry of any kind will not be tolerated. This is an LGBTQ+-friendly community -- if that is a problem for you, you should leave.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • Don't come looking for advice, this is not the right community.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves / tolerates / hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  • Β 

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 3 years ago
    MODERATORS
     

    TranscriptImage of a man pointing a gun at his own foot.

    Caption: Installing an AUR package without reading it's PKGBUILD.

    you are viewing a single comment's thread
    view the rest of the comments
    [–] akunohana@piefed.blahaj.zone 44 points 1 day ago* (last edited 1 day ago) (1 children)

    This video taught me a lot.

    Check the list of dependencies. If you really want to vet the package, look through all of the dependencies listed and read their package descriptions on their source page (github, gitlab, codeberg, whathaveyou). Check also the URL, from which makepkg (or yay or whatever) is going to pull some of the data. Is the URL legit?

    PKGBUILD of localsend

    # Maintainer: NourEddineX  
    # Contributor: Nixuge  
    # Contributor: Noah Vogt <noah@noahvogt.com>  
    # Contributor: SpieringsAE (aarch64 addition)  
    
    # Note: 
    # using the .deb instead of the .tar.gz as it already contains the icons as well as the .desktop file.  
    
    pkgname=localsend-bin  
    pkgver=1.18.0  
    pkgrel=1  
    pkgdesc='An open source cross-platform alternative to AirDrop'  
    
    LOOK HERE  
    url=https://github.com/localsend/LOCALSEND  
    LOOK HERE  
    
    arch=('x86_64' 'aarch64')  
    license=(Apache-2.0)  
    
    LOOK HERE  
    depends=(fuse2 xdg-user-dirs libayatana-appindicator)  
    LOOK HERE  
    
    conflicts=('localsend')  
    provides=('localsend')  
    options=(!debug)  
    source_x86_64=("${url}/releases/download/v${pkgver}/LocalSend-${pkgver}-linux-x86-64.deb")  
    source_aarch64=("${url}/releases/download/v${pkgver}/LocalSend-${pkgver}-linux-arm-64.deb")  
    sha256sums_x86_64=('dae68192ad43a59a68df06454eb5fa4e9a9f86a343fe430165efd8b18863d0f4')  
    sha256sums_aarch64=('eb24e724fbdf830c8fb07dfc66b76b8a649923d083278305a63d5d539db4b606')  
    _pkgdesktop="localsend_app.desktop"  
    
    
    prepare() {  
    	tar -xf data.tar.zst  
    }  
    
    build() {  
    	sed -i -E \  
    		"s|Exec=localsend_app|Exec=localsend|" \  
    		"${srcdir}/usr/share/applications/${_pkgdesktop}"  
    
    	# Adjust .desktop to have it point to the correct icon  
    	sed -i -E 's/^Icon=.+/Icon=localsend/' "${srcdir}/usr/share/applications/${_pkgdesktop}"  
    }  
    
    package() {  
    	# Desktop  
    	install -Dm644 "${srcdir}/usr/share/applications/${_pkgdesktop}" "${pkgdir}/usr/share/applications/${pkgname%-*}.desktop" 
    	
    
    	# Icons  
    	install -dm644 "${pkgdir}/usr/share/icons/"  
    	cp -a "${srcdir}/usr/share/icons" "${pkgdir}/usr/share"  
    	# Dirty - rename icons to localsend  
    	for res in "128x128" "256x256"; do  
    		mv "${pkgdir}/usr/share/icons/hicolor/${res}/apps/localsend_app.png" "${pkgdir}/usr/share/icons/hicolor/${res}/apps/localsend.png"  
    	done  
    
    
    	# Executable  
    	install -dm755 "${pkgdir}/opt/${pkgname%-*}/"  
    	cp -a "${srcdir}/opt/localsend_app/." "${pkgdir}/opt/${pkgname%-*}"  
    	# Same as icons - rename to localsend  
    	mv "${pkgdir}/opt/${pkgname%-*}/localsend_app" "${pkgdir}/opt/${pkgname%-*}/localsend"  
    
    	# Symlink executable  
    	install -dm755 "${pkgdir}/usr/bin"  
    	ln -s \  
    		"/opt/${pkgname%-*}/${pkgname%-*}" \  
    		"${pkgdir}/usr/bin/${pkgname%-*}"  
    }  
    

    [–] Kangae_Hishiryo@scribe.disroot.org 3 points 1 day ago* (last edited 17 hours ago)

    Yeah. There's also some others behaviours to look at.

    Like, does the PKGBUILD install the package on some non-standard location? That's a suspicious behaviour, although it's not an automatic red flag by itself.

    Does it execute arbitrary code or any external script (worse if it's Python, Lua or JS)? That's a HUGE red flag in most of cases.

    Does it (ab)uses of AWK, sed and the like? That's also suspicious in a variety of cases.