Fix PKGBUILD and add some Makefile comments

This commit is contained in:
William Pierce 2020-06-29 23:35:02 -07:00
parent 916d83d1ae
commit 318191ec17
2 changed files with 6 additions and 3 deletions

View File

@ -5,6 +5,7 @@ PREFIX=/usr
HFILES:=$(shell find src/ -type f -iname *.h -print)
CXXFILES:=$(shell find src/ -type f -iname *.cpp -print)
GTKFLAGS:=$(shell pkg-config gtkmm-3.0 --cflags --libs)
# For now, leave it to the distro to provide preferred extra flags
CXXFLAGS+=$(GTKFLAGS) -Wall -lsteam_api -lcurl -lyajl -ldl
LDFLAGS+=-L${CURDIR}/bin
OBJS=$(addprefix ${OBJDIR}/,$(subst .cpp,.o,${CXXFILES}))
@ -23,6 +24,7 @@ clean:
.PHONY: install
install: bin/launch.sh bin/samrewritten bin/libsteam_api.so
# TODO: use install for all of these?
mkdir -p ${DESTDIR}${PREFIX}/${LIBDIR}/SamRewritten/{bin,glade,assets}
mkdir -p ${DESTDIR}${PREFIX}/share/icons/hicolor/{64x64,256x256}/apps
mkdir -p ${DESTDIR}${PREFIX}/share/applications

View File

@ -3,7 +3,7 @@
pkgname="samrewritten-git"
_pkgname="SamRewritten"
pkgver=r133.a839930
pkgver=r199.916d83d
pkgrel=1
pkgdesc="A Steam Achievement Manager For Linux."
arch=("any")
@ -24,9 +24,10 @@ pkgver() {
build() {
cd ${_pkgname}
make DESTDIR=${pkgdir} install
make
}
package() {
cd ${_pkgname}
}
make DESTDIR=${pkgdir} install
}